Fixed fixtures for config

This commit is contained in:
Nicolas Lœuillet 2016-03-08 16:48:30 +01:00
parent bca5485946
commit 889c1cf328

View file

@ -25,6 +25,7 @@ class LoadConfigData extends AbstractFixture implements OrderedFixtureInterface
$adminConfig->setTheme('material'); $adminConfig->setTheme('material');
$adminConfig->setItemsPerPage(30); $adminConfig->setItemsPerPage(30);
$adminConfig->setReadingSpeed(1);
$adminConfig->setLanguage('en'); $adminConfig->setLanguage('en');
$manager->persist($adminConfig); $manager->persist($adminConfig);
@ -34,6 +35,7 @@ class LoadConfigData extends AbstractFixture implements OrderedFixtureInterface
$bobConfig = new Config($this->getReference('bob-user')); $bobConfig = new Config($this->getReference('bob-user'));
$bobConfig->setTheme('default'); $bobConfig->setTheme('default');
$bobConfig->setItemsPerPage(10); $bobConfig->setItemsPerPage(10);
$bobConfig->setReadingSpeed(1);
$bobConfig->setLanguage('fr'); $bobConfig->setLanguage('fr');
$manager->persist($bobConfig); $manager->persist($bobConfig);
@ -43,6 +45,7 @@ class LoadConfigData extends AbstractFixture implements OrderedFixtureInterface
$emptyConfig = new Config($this->getReference('empty-user')); $emptyConfig = new Config($this->getReference('empty-user'));
$emptyConfig->setTheme('material'); $emptyConfig->setTheme('material');
$emptyConfig->setItemsPerPage(10); $emptyConfig->setItemsPerPage(10);
$emptyConfig->setReadingSpeed(1);
$emptyConfig->setLanguage('en'); $emptyConfig->setLanguage('en');
$manager->persist($emptyConfig); $manager->persist($emptyConfig);