]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Add test for creation of new user in config page 2005/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Mon, 2 May 2016 18:19:57 +0000 (20:19 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Mon, 2 May 2016 18:19:57 +0000 (20:19 +0200)
src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php

index 1aa1a7ed3e9cdca695dca3fdcb7b2257500cd04e..1f9cfe534572fa993ca229677b38c1dcf1a84707 100644 (file)
@@ -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()