From 1b64a84b782090d8748bef0e9c390f491669e30c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 18 Mar 2016 13:12:09 +0100 Subject: Improved tests --- src/Wallabag/CoreBundle/Entity/Config.php | 4 ++-- src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Wallabag/CoreBundle') diff --git a/src/Wallabag/CoreBundle/Entity/Config.php b/src/Wallabag/CoreBundle/Entity/Config.php index e1a2090e..e18b543b 100644 --- a/src/Wallabag/CoreBundle/Entity/Config.php +++ b/src/Wallabag/CoreBundle/Entity/Config.php @@ -257,7 +257,7 @@ class Config /** * Set readingSpeed. * - * @param int $readingSpeed + * @param float $readingSpeed * * @return Config */ @@ -271,7 +271,7 @@ class Config /** * Get readingSpeed. * - * @return int + * @return float */ public function getReadingSpeed() { diff --git a/src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php index 2af93ffe..51425fe1 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php @@ -46,6 +46,7 @@ class ConfigControllerTest extends WallabagCoreTestCase $data = array( 'config[theme]' => 'baggy', 'config[items_per_page]' => '30', + 'config[reading_speed]' => '0.5', 'config[language]' => 'en', ); -- cgit v1.2.3