Skip to content
Snippets Groups Projects
Commit 3faa9657 authored by llaffont's avatar llaffont
Browse files

Correction tests liens notices resultat de recherche

parent ed177227
Branches
Tags
No related merge requests found
......@@ -578,6 +578,8 @@ class PanierControllerExportListeTest extends PanierControllerTestCase {
}
class PanierControllerAjoutAjaxNotLoggedTest extends PanierControllerTestCase {
public function setUp() {
parent::setUp();
......@@ -597,11 +599,13 @@ class PanierControllerAjoutAjaxNotLoggedTest extends PanierControllerTestCase {
}
class PanierControllerAjoutAjaxLoggedManonWithoutPanierTest extends PanierControllerTestCase {
public function setUp() {
parent::setUp();
$this->manon->setPaniers([]);
$this->dispatch('/panier/ajout-ajax/id_notice/133');
$this->dispatch('/panier/ajout-ajax/id_notice/133', true);
}
/** @test */
......@@ -612,6 +616,8 @@ class PanierControllerAjoutAjaxLoggedManonWithoutPanierTest extends PanierContro
}
class PanierControllerAjoutAjaxLoggedManonWithPanierTest extends PanierControllerTestCase {
public function setUp() {
parent::setUp();
......
......@@ -159,12 +159,12 @@ class ZendAfi_View_Helper_Notice_Mur_BarreDeLienTest extends ZendAfi_View_Helper
/** @test */
public function barreDeLienShouldContainUrlAjoutPanier() {
$this->assertXPath($this->_html, '//a[contains(@href, "panierajouternotice/id_notice/34")]');
$this->assertXPath($this->_html, '//a[contains(@href, "panier/ajout-ajax/id_notice/34")]', $this->_html);
}
/** @test */
public function barreDeLienShouldContainUrlReserver() {
$this->assertXPath($this->_html, '//a[contains(@href, "panierajouternotice/id_notice/34")]');
$this->assertXPath($this->_html, '//a[contains(@onclick, "openDialogExemplaires(34")]');
}
/** @test */
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment