Skip to content

Commit 227448c

Browse files
committed
Update to use the new migration method
1 parent 7b34d44 commit 227448c

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Tests/Integration/BaseBlockTest.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,17 @@ protected function getEnvironmentSetUp($app)
6161

6262
private function resetDatabase()
6363
{
64-
// Relative to the testbench app folder: vendors/orchestra/testbench/src/fixture
65-
$migrationsPath = realpath('Database/Migrations');
66-
$artisan = $this->app->make('Illuminate\Contracts\Console\Kernel');
6764
// Makes sure the migrations table is created
68-
$artisan->call('migrate', [
65+
$this->artisan('migrate', [
6966
'--database' => 'sqlite',
70-
'--realpath' => $migrationsPath,
7167
]);
7268
// We empty all tables
73-
$artisan->call('migrate:reset', [
69+
$this->artisan('migrate:reset', [
7470
'--database' => 'sqlite',
7571
]);
7672
// Migrate
77-
$artisan->call('migrate', [
73+
$this->artisan('migrate', [
7874
'--database' => 'sqlite',
79-
'--realpath' => $migrationsPath,
8075
]);
8176
}
8277
}

0 commit comments

Comments
 (0)