forked from wallabag/wallabag
Added tests
This commit is contained in:
committed by
Jeremy Benoist
parent
f052f1fd57
commit
65cd8a4a9a
@ -25,14 +25,14 @@ class RedirectTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
$redirectUrl = $this->redirect->to(null, 'fallback');
|
||||
|
||||
$this->assertEquals('fallback', $redirectUrl);
|
||||
$this->assertEquals(null, $redirectUrl);
|
||||
}
|
||||
|
||||
public function testRedirectToNullWithoutFallback()
|
||||
{
|
||||
$redirectUrl = $this->redirect->to(null);
|
||||
|
||||
$this->assertEquals($this->routerMock->generate('homepage'), $redirectUrl);
|
||||
$this->assertEquals(null, $redirectUrl);
|
||||
}
|
||||
|
||||
public function testRedirectToValidUrl()
|
||||
|
||||
Reference in New Issue
Block a user