mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-26 11:01:04 +00:00
fixed review
This commit is contained in:
parent
aaa03cc395
commit
33b1c252a7
3 changed files with 1 additions and 9 deletions
|
@ -24,7 +24,6 @@ class ConfigFixtures extends Fixture implements DependentFixtureInterface
|
|||
$adminConfig->setPocketConsumerKey('xxxxx');
|
||||
$adminConfig->setActionMarkAsRead(0);
|
||||
$adminConfig->setListMode(0);
|
||||
$adminConfig->setListMode(0);
|
||||
|
||||
$manager->persist($adminConfig);
|
||||
|
||||
|
|
|
@ -40,8 +40,6 @@ class Config
|
|||
*
|
||||
* @Assert\NotBlank()
|
||||
* @ORM\Column(name="theme", type="string", nullable=false)
|
||||
*
|
||||
* @Groups({"config_api"})
|
||||
*/
|
||||
private $theme;
|
||||
|
||||
|
@ -106,8 +104,6 @@ class Config
|
|||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="pocket_consumer_key", type="string", nullable=true)
|
||||
*
|
||||
* @Groups({"config_api"})
|
||||
*/
|
||||
private $pocketConsumerKey;
|
||||
|
||||
|
|
|
@ -14,17 +14,14 @@ class ConfigRestControllerTest extends WallabagApiTestCase
|
|||
$content = json_decode($this->client->getResponse()->getContent(), true);
|
||||
|
||||
$this->assertArrayHasKey('id', $content);
|
||||
$this->assertArrayHasKey('theme', $content);
|
||||
$this->assertArrayHasKey('items_per_page', $content);
|
||||
$this->assertArrayHasKey('language', $content);
|
||||
$this->assertArrayHasKey('reading_speed', $content);
|
||||
$this->assertArrayHasKey('pocket_consumer_key', $content);
|
||||
$this->assertArrayHasKey('action_mark_as_read', $content);
|
||||
$this->assertArrayHasKey('list_mode', $content);
|
||||
|
||||
$this->assertSame('material', $content['theme']);
|
||||
$this->assertSame(200.0, $content['reading_speed']);
|
||||
$this->assertSame('xxxxx', $content['pocket_consumer_key']);
|
||||
$this->assertSame('en', $content['language']);
|
||||
|
||||
$this->assertSame('application/json', $this->client->getResponse()->headers->get('Content-Type'));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue