| @@ -58,33 +58,34 @@ class AppFixtures extends Fixture | |||||
| 'email' => 'd.knudsen@spawntree.de', | 'email' => 'd.knudsen@spawntree.de', | ||||
| 'firstName' => 'Daniel', | 'firstName' => 'Daniel', | ||||
| 'lastName' => 'Knudsen', | 'lastName' => 'Knudsen', | ||||
| 'password' => 'spawntree', | |||||
| 'password' => '12spawntree345', | |||||
| 'roles' => ['ROLE_ADMIN'] | |||||
| ] | ] | ||||
| ); | ); | ||||
| $adminD->setRoles(['ROLE_ADMIN']); | |||||
| $adminD->setImage(MediaObjectUserFactory::createOne()->object()); | $adminD->setImage(MediaObjectUserFactory::createOne()->object()); | ||||
| $adminD->save(); | |||||
| $adminF = UserFactory::createOne( | |||||
| UserFactory::createOne( | |||||
| [ | [ | ||||
| 'email' => 'f.eisenmenger@spawntree.de', | 'email' => 'f.eisenmenger@spawntree.de', | ||||
| 'firstName' => 'Florian', | 'firstName' => 'Florian', | ||||
| 'lastName' => 'Eisenmenger', | 'lastName' => 'Eisenmenger', | ||||
| 'password' => 'spawntree', | |||||
| 'image' => MediaObjectUserFactory::createOne() | |||||
| 'password' => '12spawntree345', | |||||
| 'image' => MediaObjectUserFactory::createOne(), | |||||
| 'roles' => ['ROLE_ADMIN'] | |||||
| ] | ] | ||||
| ); | ); | ||||
| $adminF->setRoles(['ROLE_ADMIN']); | |||||
| $adminF = UserFactory::createOne( | |||||
| UserFactory::createOne( | |||||
| [ | [ | ||||
| 'email' => 'jan.hansen@matsen.de', | 'email' => 'jan.hansen@matsen.de', | ||||
| 'firstName' => 'Jan', | 'firstName' => 'Jan', | ||||
| 'lastName' => 'Hansen', | 'lastName' => 'Hansen', | ||||
| 'password' => 'matsen123', | |||||
| 'image' => MediaObjectUserFactory::createOne() | |||||
| 'password' => 'J1matsen23', | |||||
| 'image' => MediaObjectUserFactory::createOne(), | |||||
| 'roles' => ['ROLE_ADMIN'] | |||||
| ] | ] | ||||
| ); | ); | ||||
| $adminF->setRoles(['ROLE_ADMIN']); | |||||
| for ($i = 0; $i < 5; $i++) { | for ($i = 0; $i < 5; $i++) { | ||||
| UserFactory::createOne( | UserFactory::createOne( | ||||
| @@ -95,10 +96,12 @@ class AppFixtures extends Fixture | |||||
| ); | ); | ||||
| } | } | ||||
| for ($i = 0; $i < 10; $i++) { | |||||
| for ($i = 0; $i < 5; $i++) { | |||||
| UserFactory::createOne( | UserFactory::createOne( | ||||
| [ | [ | ||||
| 'image' => MediaObjectUserFactory::createOne() | |||||
| 'email' => 'sales' . $i+1 . '@matsen.de', | |||||
| 'image' => MediaObjectUserFactory::createOne(), | |||||
| 'roles' => ['ROLE_SALES'] | |||||
| ] | ] | ||||
| ); | ); | ||||
| } | } | ||||