aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Controller/ConfigController.php1
-rw-r--r--src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/ConfigController.php b/src/Wallabag/CoreBundle/Controller/ConfigController.php
index ccc3e8a1..4f75511b 100644
--- a/src/Wallabag/CoreBundle/Controller/ConfigController.php
+++ b/src/Wallabag/CoreBundle/Controller/ConfigController.php
@@ -140,6 +140,7 @@ class ConfigController extends Controller
140 $config->setItemsPerPage($this->getParameter('wallabag_core.items_on_page')); 140 $config->setItemsPerPage($this->getParameter('wallabag_core.items_on_page'));
141 $config->setRssLimit($this->getParameter('wallabag_core.rss_limit')); 141 $config->setRssLimit($this->getParameter('wallabag_core.rss_limit'));
142 $config->setLanguage($this->getParameter('wallabag_core.language')); 142 $config->setLanguage($this->getParameter('wallabag_core.language'));
143 $config->setReadingSpeed($this->getParameter('wallabag_core.reading_speed'));
143 144
144 $em->persist($config); 145 $em->persist($config);
145 146
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
355 355
356 $this->assertTrue(false !== $user); 356 $this->assertTrue(false !== $user);
357 $this->assertTrue($user->isEnabled()); 357 $this->assertTrue($user->isEnabled());
358 $this->assertEquals('material', $user->getConfig()->getTheme());
359 $this->assertEquals(12, $user->getConfig()->getItemsPerPage());
360 $this->assertEquals(50, $user->getConfig()->getRssLimit());
361 $this->assertEquals('en', $user->getConfig()->getLanguage());
362 $this->assertEquals(1, $user->getConfig()->getReadingSpeed());
358 } 363 }
359 364
360 public function testRssUpdateResetToken() 365 public function testRssUpdateResetToken()