aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/CoreBundle/Helper/RedirectTest.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-11-07 10:26:05 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-11-16 23:07:34 +0100
commit65cd8a4a9a1d15d962033f58276005a5f7716f3a (patch)
treec0dd762b631ae22443fb5efba3b838aeee01f7af /tests/Wallabag/CoreBundle/Helper/RedirectTest.php
parentf052f1fd57e51c8ae5ac17587636d608619a2057 (diff)
downloadwallabag-65cd8a4a9a1d15d962033f58276005a5f7716f3a.tar.gz
wallabag-65cd8a4a9a1d15d962033f58276005a5f7716f3a.tar.zst
wallabag-65cd8a4a9a1d15d962033f58276005a5f7716f3a.zip
Added tests
Diffstat (limited to 'tests/Wallabag/CoreBundle/Helper/RedirectTest.php')
-rw-r--r--tests/Wallabag/CoreBundle/Helper/RedirectTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Wallabag/CoreBundle/Helper/RedirectTest.php b/tests/Wallabag/CoreBundle/Helper/RedirectTest.php
index 825e8d53..a2d6a524 100644
--- a/tests/Wallabag/CoreBundle/Helper/RedirectTest.php
+++ b/tests/Wallabag/CoreBundle/Helper/RedirectTest.php
@@ -25,14 +25,14 @@ class RedirectTest extends \PHPUnit_Framework_TestCase
25 { 25 {
26 $redirectUrl = $this->redirect->to(null, 'fallback'); 26 $redirectUrl = $this->redirect->to(null, 'fallback');
27 27
28 $this->assertEquals('fallback', $redirectUrl); 28 $this->assertEquals(null, $redirectUrl);
29 } 29 }
30 30
31 public function testRedirectToNullWithoutFallback() 31 public function testRedirectToNullWithoutFallback()
32 { 32 {
33 $redirectUrl = $this->redirect->to(null); 33 $redirectUrl = $this->redirect->to(null);
34 34
35 $this->assertEquals($this->routerMock->generate('homepage'), $redirectUrl); 35 $this->assertEquals(null, $redirectUrl);
36 } 36 }
37 37
38 public function testRedirectToValidUrl() 38 public function testRedirectToValidUrl()