fixed review

This commit is contained in:
Nicolas Lœuillet 2022-03-15 11:07:57 +01:00 committed by Jeremy Benoist
parent aaa03cc395
commit 33b1c252a7
No known key found for this signature in database
GPG Key ID: BCA73962457ACC3C
3 changed files with 1 additions and 9 deletions

View File

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

View File

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

View File

@ -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'));
}