X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2FWallabag%2FCoreBundle%2FHelper%2FRedirectTest.php;h=825e8d53f2cb651cee70bfb1f2c9c2329a6b102b;hb=a42f38d9fb7906b785285fab2a09f8c2b9efe996;hp=f339f75e80f07fe65f9768a6525602e467799102;hpb=23634d5d842dabcf5d7475e2becb7e127824239e;p=github%2Fwallabag%2Fwallabag.git diff --git a/tests/Wallabag/CoreBundle/Helper/RedirectTest.php b/tests/Wallabag/CoreBundle/Helper/RedirectTest.php index f339f75e..825e8d53 100644 --- a/tests/Wallabag/CoreBundle/Helper/RedirectTest.php +++ b/tests/Wallabag/CoreBundle/Helper/RedirectTest.php @@ -15,7 +15,10 @@ class RedirectTest extends \PHPUnit_Framework_TestCase public function setUp() { $this->routerMock = $this->getRouterMock(); - $this->redirect = new Redirect($this->routerMock); + $tokenStorage = $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface') + ->disableOriginalConstructor() + ->getMock(); + $this->redirect = new Redirect($this->routerMock, $tokenStorage); } public function testRedirectToNullWithFallback()