예제 #1
0
 public function setUp()
 {
     parent::setUp();
     foreach (UserRole::values() as $userRole) {
         factory(User::class, 10)->create(['role' => $userRole]);
     }
 }
예제 #2
0
 public function setUp()
 {
     parent::setUp();
     $this->fragments = (new FragmentSeeder())->seedRandomFragments(10);
 }