diff --git a/application/modules/opac/controllers/PanierController.php b/application/modules/opac/controllers/PanierController.php index 28df65b235644258893a717c11683969e59f4f73..d62a57aa3c52b83a784011b7d6725b0de0ae96ee 100644 --- a/application/modules/opac/controllers/PanierController.php +++ b/application/modules/opac/controllers/PanierController.php @@ -44,10 +44,6 @@ class PanierController extends ZendAfi_Controller_Action { return; } - - $this->view->creer_panier = $this->view->url(['controller'=>'panier', - 'action'=>'creer-panier']); - $paniers = $this->_user->getPaniers(); $this->view->paniers = $paniers; diff --git a/application/modules/opac/views/scripts/panier/index.phtml b/application/modules/opac/views/scripts/panier/index.phtml index 8bdeb7c5d3b7daf51384f352426331fb3adc81bf..043b3937bd2798cb83058e403989d94b7b5875df 100644 --- a/application/modules/opac/views/scripts/panier/index.phtml +++ b/application/modules/opac/views/scripts/panier/index.phtml @@ -5,7 +5,6 @@ $this->openBoite("Vos paniers de documents"); ?> <span id="abonne_erreur" class="abonne"> <?php if ($this->message != '')echo $this->traduire($this->message); ?> </span> -<a href="<?php print($this->creer_panier); ?>" data-popup="true" ><?php echo $this->_('Créer un nouveau panier'); ?></a> <?php if ($this->ajout_panier_form) diff --git a/tests/application/modules/opac/controllers/PanierControllerTest.php b/tests/application/modules/opac/controllers/PanierControllerTest.php index 16a2cd8754733bbf1d5fda9baad15a75a541b1d4..0b0e26b031adf9e7cfa1ac25b3fc05c7dd001150 100644 --- a/tests/application/modules/opac/controllers/PanierControllerTest.php +++ b/tests/application/modules/opac/controllers/PanierControllerTest.php @@ -307,7 +307,7 @@ class PanierControllerIndexAsRedacteurActionTest extends PanierControllerTestCas /** @test */ public function panierDomaineShouldContainLinkToCreerPanier(){ - $this->assertXPath('//a[contains(@href,"panier/creer-panier")]',$this->response->getBody()); + $this->assertNotXPath('//a[contains(@href,"panier/creer-panier")]',$this->response->getBody()); }