1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Added a configuration to define the redirection after archiving an entry

Fix #496
This commit is contained in:
Nicolas Lœuillet 2016-11-06 12:02:39 +01:00 committed by Jeremy Benoist
parent e042a5d78f
commit a42f38d9fb
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
26 changed files with 184 additions and 3 deletions

View file

@ -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',
];

View file

@ -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;

View file

@ -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()