diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-02-25 15:04:14 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-02-25 15:04:14 +0100 |
commit | 957dd4b86a4164e0cf4ddea71f4be162dfc71dae (patch) | |
tree | f69493c2d0b654b07fc61946c1b35926ca69ed8c /tests | |
parent | f005e7acff9fcaf564c29e4419a424a275fc932a (diff) |
use linkToRoute instead of absolute url to not rely on the base url
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/controller/PageControllerTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/controller/PageControllerTest.php b/tests/unit/controller/PageControllerTest.php index 47c85fdd9..3277fdc43 100644 --- a/tests/unit/controller/PageControllerTest.php +++ b/tests/unit/controller/PageControllerTest.php @@ -166,8 +166,8 @@ class PageControllerTest extends \PHPUnit_Framework_TestCase { ->method('getExploreUrl') ->will($this->returnValue(' ')); $this->urlGenerator->expects($this->once()) - ->method('getAbsoluteURL') - ->with($this->equalTo('/index.php/apps/news/explore')) + ->method('linkToRoute') + ->with($this->equalTo('news.page.explore')) ->will($this->returnValue('test')); |