diff --git a/tests/application/modules/opac/controllers/PanierControllerTest.php b/tests/application/modules/opac/controllers/PanierControllerTest.php index 9e8a5fad3c66c50fde5ce7330efd83954bf60956..06fd05a08443e09657701bb571b7588371916255 100644 --- a/tests/application/modules/opac/controllers/PanierControllerTest.php +++ b/tests/application/modules/opac/controllers/PanierControllerTest.php @@ -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(); diff --git a/tests/library/ZendAfi/View/Helper/Notice/MurTest.php b/tests/library/ZendAfi/View/Helper/Notice/MurTest.php index 6f858b53bf956dcdf894717f58f8a38029bf505b..34e97fb6a318728db4b8d7bb021ddbaa9ae90e9e 100644 --- a/tests/library/ZendAfi/View/Helper/Notice/MurTest.php +++ b/tests/library/ZendAfi/View/Helper/Notice/MurTest.php @@ -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 */