mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-02 16:38:38 +00:00
Fixed testsuite
This commit is contained in:
parent
46521e48e5
commit
19322142c3
3 changed files with 4 additions and 2 deletions
|
@ -25,7 +25,7 @@ class CreateConfigListener implements EventSubscriberInterface
|
||||||
private $session;
|
private $session;
|
||||||
private $displayThumbnails;
|
private $displayThumbnails;
|
||||||
|
|
||||||
public function __construct(EntityManagerInterface $em, $itemsOnPage, $feedLimit, $language, $readingSpeed, $actionMarkAsRead, $listMode, SessionInterface $session, $displayThumbnails)
|
public function __construct(EntityManagerInterface $em, $itemsOnPage, $feedLimit, $language, $readingSpeed, $actionMarkAsRead, $listMode, $displayThumbnails, SessionInterface $session)
|
||||||
{
|
{
|
||||||
$this->em = $em;
|
$this->em = $em;
|
||||||
$this->itemsOnPage = $itemsOnPage;
|
$this->itemsOnPage = $itemsOnPage;
|
||||||
|
|
|
@ -19,11 +19,12 @@ class ConfigRestControllerTest extends WallabagApiTestCase
|
||||||
$this->assertArrayHasKey('reading_speed', $config);
|
$this->assertArrayHasKey('reading_speed', $config);
|
||||||
$this->assertArrayHasKey('action_mark_as_read', $config);
|
$this->assertArrayHasKey('action_mark_as_read', $config);
|
||||||
$this->assertArrayHasKey('list_mode', $config);
|
$this->assertArrayHasKey('list_mode', $config);
|
||||||
|
$this->assertArrayHasKey('display_thumbnails', $config);
|
||||||
|
|
||||||
$this->assertSame(200.0, $config['reading_speed']);
|
$this->assertSame(200.0, $config['reading_speed']);
|
||||||
$this->assertSame('en', $config['language']);
|
$this->assertSame('en', $config['language']);
|
||||||
|
|
||||||
$this->assertCount(6, $config);
|
$this->assertCount(7, $config);
|
||||||
|
|
||||||
$this->assertSame('application/json', $this->client->getResponse()->headers->get('Content-Type'));
|
$this->assertSame('application/json', $this->client->getResponse()->headers->get('Content-Type'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,7 @@ class CreateConfigListenerTest extends TestCase
|
||||||
1,
|
1,
|
||||||
1,
|
1,
|
||||||
1,
|
1,
|
||||||
|
1,
|
||||||
$session
|
$session
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue