aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/UserBundle/DataFixtures
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/UserBundle/DataFixtures')
-rw-r--r--src/Wallabag/UserBundle/DataFixtures/ORM/LoadUserData.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Wallabag/UserBundle/DataFixtures/ORM/LoadUserData.php b/src/Wallabag/UserBundle/DataFixtures/ORM/LoadUserData.php
index d48855da..26dbda3b 100644
--- a/src/Wallabag/UserBundle/DataFixtures/ORM/LoadUserData.php
+++ b/src/Wallabag/UserBundle/DataFixtures/ORM/LoadUserData.php
@@ -37,6 +37,17 @@ class LoadUserData extends AbstractFixture implements OrderedFixtureInterface
37 37
38 $this->addReference('bob-user', $bobUser); 38 $this->addReference('bob-user', $bobUser);
39 39
40 $emptyUser = new User();
41 $emptyUser->setName('Empty');
42 $emptyUser->setEmail('empty@wallabag.org');
43 $emptyUser->setUsername('empty');
44 $emptyUser->setPlainPassword('mypassword');
45 $emptyUser->setEnabled(true);
46
47 $manager->persist($emptyUser);
48
49 $this->addReference('empty-user', $emptyUser);
50
40 $manager->flush(); 51 $manager->flush();
41 } 52 }
42 53