From 3faa965733e718ea8d74dcfe920740d423a4f353 Mon Sep 17 00:00:00 2001 From: llaffont <llaffont@git-test.afi-sa.fr> Date: Mon, 10 Jun 2013 07:06:51 +0000 Subject: [PATCH] Correction tests liens notices resultat de recherche --- .../modules/opac/controllers/PanierControllerTest.php | 8 +++++++- tests/library/ZendAfi/View/Helper/Notice/MurTest.php | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/application/modules/opac/controllers/PanierControllerTest.php b/tests/application/modules/opac/controllers/PanierControllerTest.php index 9e8a5fad3c6..06fd05a0844 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 6f858b53bf9..34e97fb6a31 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 */ -- GitLab