forked from wallabag/wallabag
Make Redirect helper supports only absolute path reference URLs
This commit is contained in:
@ -73,6 +73,13 @@ class RedirectTest extends TestCase
|
||||
$this->assertSame('/unread/list', $redirectUrl);
|
||||
}
|
||||
|
||||
public function testRedirectToAbsoluteUrl()
|
||||
{
|
||||
$redirectUrl = $this->redirect->to('https://www.google.com/');
|
||||
|
||||
$this->assertSame('/', $redirectUrl);
|
||||
}
|
||||
|
||||
public function testWithNotLoggedUser()
|
||||
{
|
||||
$redirect = new Redirect($this->routerMock, new TokenStorage());
|
||||
|
||||
Reference in New Issue
Block a user