From a0337323ff1f0e881cbc85eb487518770a0d433d Mon Sep 17 00:00:00 2001 From: gloas <gloas@git-test.afi-sa.fr> Date: Thu, 26 Sep 2013 14:40:12 +0000 Subject: [PATCH] correction test ProfilOptionsControllerTwitterLinkWithProfilAdulteTest --- .../ProfilOptionsControllerTest.php | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php index 85e004db37b..135a5a1b696 100644 --- a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php +++ b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php @@ -185,24 +185,8 @@ class ProfilOptionsControllerTwitterLinkWithProfilAdulteTest extends ProfilOptio $this->_mock_web_client ->whenCalled('open_url') - ->with(sprintf('http://is.gd/api.php?longurl=%s', - urlencode('http://localhost/index/index'))) - ->answers('http://is.gd/PkdNgD') + ->answers('http://is.gd/PkdNgD'); - ->whenCalled('open_url') - ->with(sprintf('http://is.gd/api.php?longurl=%s', - urlencode('http://localhost' . BASE_URL . '/index/index'))) - ->answers('http://is.gd/PkdNgD') - - ->whenCalled('open_url') - ->with("http://is.gd/api.php?longurl=http%3A%2F%2Flocalhost%2Fafi-opac%2Findex%2Findex%3Fid_profil%3D2") - ->answers("http://is.gd/PkdNgD") - - ->whenCalled('open_url') - ->with("http://is.gd/api.php?longurl=http%3A%2F%2Flocalhost%2Findex%2Findex%3Fid_profil%3D2") - ->answers("http://is.gd/PkdNgD") - - ->beStrict(); } -- GitLab