make(Kernel::class); /* * Bootstrap the kernel and prepare application for testing. */ $kernel->bootstrap(); $output = new ConsoleOutput; /* * Perform database migrations and reseeding before continuing with * running the tests. */ $output->writeln(PHP_EOL . 'Refreshing database for Integration tests...'); $kernel->call('migrate:fresh', ['--database' => 'testing']); $output->writeln('Seeding database for Integration tests...' . PHP_EOL); $kernel->call('db:seed', ['--database' => 'testing']);