/**
  * Call here Models seeders;
  * @param bool $want_fake : Whether to create fake users or not
  */
 public static function Seed($want_fake = true)
 {
     /**
      * Models.
      */
     RRPPSeeder::Seed($want_fake);
     UserSeeder::Seed($want_fake);
     ProviderSeeder::Seed($want_fake);
     ProfileSeeder::Seed($want_fake);
     LocalSeeder::Seed($want_fake);
     PeriodSeeder::Seed($want_fake);
     SchedulingSeeder::Seed($want_fake);
     GuestListSeeder::Seed($want_fake);
     EventSeeder::Seed($want_fake);
     MusicTagSeeder::Seed($want_fake);
     HashTagSeeder::Seed($want_fake);
     ProductSeeder::Seed($want_fake);
     PackSeeder::Seed($want_fake);
     PhotoSeeder::Seed($want_fake);
     /**
      * Relationships.
      */
     FollowerSeeder::Seed($want_fake);
     AppearSeeder::Seed($want_fake);
     AttendSeeder::Seed($want_fake);
     BelongSeeder::Seed($want_fake);
     FollowSeeder::Seed($want_fake);
     PhotoHasHashTagSeeder::Seed($want_fake);
     PackHasProductSeeder::Seed($want_fake);
     EventHasPackSeeder::Seed($want_fake);
     EventHasHashTagSeeder::Seed($want_fake);
     EventHasMusicTagSeeder::Seed($want_fake);
     $env = getenv('APP_ENV');
     if ($env === 'test') {
         TestClientSeeder::Seed();
     }
 }
示例#2
0
 public function _before(FunctionalTester $I)
 {
     $this->model = new RRPP();
     $this->model->assign(RRPPSeeder::ExtraSeeds()[0]);
 }