mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Added tests
This commit is contained in:
parent
f052f1fd57
commit
65cd8a4a9a
3 changed files with 78 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue