3 namespace Tests\Helpers;
5 use Illuminate\Support\Facades\Artisan;
6 use Illuminate\Support\Facades\ParallelTesting;
7 use Illuminate\Support\ServiceProvider;
9 class TestServiceProvider extends ServiceProvider
16 public function boot()
18 // Tell Laravel's parallel testing functionality to seed the test
19 // databases with the DummyContentSeeder upon creation.
20 // This is only done for initial database creation. Seeding
21 // won't occur on every run.
22 ParallelTesting::setUpTestDatabase(function ($database, $token) {
23 Artisan::call('db:seed --class=DummyContentSeeder');