From 1a1ee466c939986e47b9cab3d8eb0327b90eaef4 Mon Sep 17 00:00:00 2001 From: Ghislain Loas <ghislo@sandbox.pergame.net> Date: Mon, 7 Jul 2014 17:29:38 +0200 Subject: [PATCH] =?UTF-8?q?dev=20#14883=20changing=20link=20label=20from?= =?UTF-8?q?=20"retour=20=C3=A0=20la=20fiche=20utilisateur"=20to=20"=20reto?= =?UTF-8?q?ur=20=C3=A0=20mon=20compte"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/ZendAfi/View/Helper/Abonne/RetourFiche.php | 2 +- .../opac/controllers/AbonneControllerPretsTest.php | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/library/ZendAfi/View/Helper/Abonne/RetourFiche.php b/library/ZendAfi/View/Helper/Abonne/RetourFiche.php index 6d9b3a43c99..46c5cb116d0 100644 --- a/library/ZendAfi/View/Helper/Abonne/RetourFiche.php +++ b/library/ZendAfi/View/Helper/Abonne/RetourFiche.php @@ -22,7 +22,7 @@ class ZendAfi_View_Helper_Abonne_RetourFiche extends ZendAfi_View_Helper_Abonne_ public function abonne_retourFiche() { return '<div style="margin-top:5px"> <a href="'.$this->view->url(['controller' => 'abonne', 'action' => 'fiche'], null, true).'">' - .$this->view->_('Retour à la fiche utilisateur').'</a> + .$this->view->_('Retour à mon compte').'</a> </div>'; } } diff --git a/tests/application/modules/opac/controllers/AbonneControllerPretsTest.php b/tests/application/modules/opac/controllers/AbonneControllerPretsTest.php index d46eccbf2e9..f7df2434016 100644 --- a/tests/application/modules/opac/controllers/AbonneControllerPretsTest.php +++ b/tests/application/modules/opac/controllers/AbonneControllerPretsTest.php @@ -159,7 +159,14 @@ class AbonneControllerPretsExportTwoPretsTest extends AbonneControllerPretsListT class AbonneControllerPretsListTwoPretsTest extends AbonneControllerPretsListTwoPretsTestCase { public function setUp() { parent::setUp(); - $this->dispatch('/opac/abonne/prets'); + $this->dispatch('/opac/abonne/prets', true); + } + + + /** @test */ + public function returnToMyHomeShouldBePresent() { + $this->assertXPathContentContains('//a[contains(@href, "/abonne/fiche")]', + utf8_encode('Retour à mon compte')); } -- GitLab