From 8389074180913bc4368a9747d6455dafb2a421df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 2 May 2016 20:19:57 +0200 Subject: Add test for creation of new user in config page --- src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php index 1aa1a7ed..1f9cfe53 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php @@ -355,6 +355,11 @@ class ConfigControllerTest extends WallabagCoreTestCase $this->assertTrue(false !== $user); $this->assertTrue($user->isEnabled()); + $this->assertEquals('material', $user->getConfig()->getTheme()); + $this->assertEquals(12, $user->getConfig()->getItemsPerPage()); + $this->assertEquals(50, $user->getConfig()->getRssLimit()); + $this->assertEquals('en', $user->getConfig()->getLanguage()); + $this->assertEquals(1, $user->getConfig()->getReadingSpeed()); } public function testRssUpdateResetToken() -- cgit v1.2.3