diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-01-22 17:53:15 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-01-22 17:53:15 +0100 |
commit | 9435bfc2174ee35ea36c2ada14dc2a8275e56331 (patch) | |
tree | b4d3058af71f5d1e10c60229f5c1fcecea6a7d02 /tests | |
parent | dc9392d0f8881ab7736f0daf1f785e5c3d0871ef (diff) |
change explore url
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/controller/PageControllerTest.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/unit/controller/PageControllerTest.php b/tests/unit/controller/PageControllerTest.php index 3277fdc43..282b02857 100644 --- a/tests/unit/controller/PageControllerTest.php +++ b/tests/unit/controller/PageControllerTest.php @@ -167,7 +167,8 @@ class PageControllerTest extends \PHPUnit_Framework_TestCase { ->will($this->returnValue(' ')); $this->urlGenerator->expects($this->once()) ->method('linkToRoute') - ->with($this->equalTo('news.page.explore')) + ->with($this->equalTo('news.page.explore'), + $this->equalTo(['lang' => 'en'])) ->will($this->returnValue('test')); @@ -309,13 +310,13 @@ class PageControllerTest extends \PHPUnit_Framework_TestCase { $this->recommended->expects($this->once()) ->method('forLanguage') - ->with($this->equalTo('de_DE'), $this->equalTo('en')) + ->with($this->equalTo('en')) ->will($this->returnValue($in)); - $out = $this->controller->explore('de_DE'); + $out = $this->controller->explore('en'); $this->assertEquals($in, $out); } -}
\ No newline at end of file +} |