Skip to content

Commit

Permalink
Updated the user fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jun 21, 2017
1 parent c366c05 commit eafb89e
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/AppBundle/DataFixtures/ORM/UserFixtures.php
Expand Up @@ -54,7 +54,7 @@ public function load(ObjectManager $manager)
$this->addReference('jane-admin', $janeAdmin);

$tomAdmin = new User();
$tomAdmin->setFullName('Tom Good');
$tomAdmin->setFullName('Tom Doe');
$tomAdmin->setUsername('tom_admin');
$tomAdmin->setEmail('tom_admin@symfony.com');
$tomAdmin->setRoles(['ROLE_ADMIN']);
Expand All @@ -63,16 +63,6 @@ public function load(ObjectManager $manager)
$manager->persist($tomAdmin);
$this->addReference('tom-admin', $tomAdmin);

$bobAdmin = new User();
$bobAdmin->setFullName('Bob Bad');
$bobAdmin->setUsername('bob_admin');
$bobAdmin->setEmail('bob_admin@symfony.com');
$bobAdmin->setRoles(['ROLE_ADMIN']);
$encodedPassword = $passwordEncoder->encodePassword($bobAdmin, 'kitten');
$bobAdmin->setPassword($encodedPassword);
$manager->persist($bobAdmin);
$this->addReference('bob-admin', $bobAdmin);

$johnUser = new User();
$johnUser->setFullName('John Doe');
$johnUser->setUsername('john_user');
Expand Down

0 comments on commit eafb89e

Please sign in to comment.