bookmark_borderPHPUnit – Seeding inside your test methods

If you want to run seeders before each test you can use the artisan command in each of your test methods.

Running all seeders with:

$this->artisan('db:seed');

Running only one specific seeder:

$this->artisan('db:seed', ['--class' => 'RolesTableSeeder']);