Skip to content

Commit

Permalink
Update to use the new migration method
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Jun 15, 2017
1 parent 7b34d44 commit 227448c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Tests/Integration/BaseBlockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]);
}
}

0 comments on commit 227448c

Please sign in to comment.