diff --git a/Tests/Integration/BaseBlockTest.php b/Tests/Integration/BaseBlockTest.php index 3ff152a..24b8daf 100644 --- a/Tests/Integration/BaseBlockTest.php +++ b/Tests/Integration/BaseBlockTest.php @@ -61,22 +61,17 @@ protected function getEnvironmentSetUp($app) private function resetDatabase() { - // Relative to the testbench app folder: vendors/orchestra/testbench/src/fixture - $migrationsPath = realpath('Database/Migrations'); - $artisan = $this->app->make('Illuminate\Contracts\Console\Kernel'); // Makes sure the migrations table is created - $artisan->call('migrate', [ + $this->artisan('migrate', [ '--database' => 'sqlite', - '--realpath' => $migrationsPath, ]); // We empty all tables - $artisan->call('migrate:reset', [ + $this->artisan('migrate:reset', [ '--database' => 'sqlite', ]); // Migrate - $artisan->call('migrate', [ + $this->artisan('migrate', [ '--database' => 'sqlite', - '--realpath' => $migrationsPath, ]); } }