From a42f38d9fb7906b785285fab2a09f8c2b9efe996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 6 Nov 2016 12:02:39 +0100 Subject: Added a configuration to define the redirection after archiving an entry Fix #496 --- tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php | 1 + tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php | 1 - tests/Wallabag/CoreBundle/Helper/RedirectTest.php | 5 ++++- 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/Wallabag') diff --git a/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php b/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php index 568576a3..a2863014 100644 --- a/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php @@ -51,6 +51,7 @@ class ConfigControllerTest extends WallabagCoreTestCase 'config[theme]' => 'baggy', 'config[items_per_page]' => '30', 'config[reading_speed]' => '0.5', + 'config[action_mark_as_read]' => '0', 'config[language]' => 'en', ]; diff --git a/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php b/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php index 920c21d9..85f12d87 100644 --- a/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php +++ b/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php @@ -3,7 +3,6 @@ namespace Tests\Wallabag\CoreBundle\Helper; use Wallabag\CoreBundle\Helper\DownloadImages; -use Psr\Log\NullLogger; use Monolog\Logger; use Monolog\Handler\TestHandler; use GuzzleHttp\Client; 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() -- cgit v1.2.3