public function mainAction() { DatabaseSeeder::Seed(); echo "Database is successfully seeded \n"; }
/** * Before each test. * * @param \Codeception\TestCase $test */ public function _before(\Codeception\TestCase $test) { // Populate DB DatabaseSeeder::Seed(false); }
protected function _before() { \App\Db\Seeds\DatabaseSeeder::Seed($want_fake = false); $this->modelWValidation = new Event(); $this->modelWValidation->assign(EventSeeder::ExtraSeeds()[0]); }