Skip to content

Commit f29dd99

Browse files
committed
ITT: Made Laravel 5.1 related fixes.
1 parent 1333230 commit f29dd99

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/TestingTools/TestCase.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ protected function setUpDatabase()
3434

3535
DB::statement('PRAGMA foreign_keys = ON');
3636

37-
$this->artisan('migrate', ['--database' => 'testing']);
37+
$this->artisan('migrate', [
38+
'--database' => 'testing',
39+
'--realpath' => __DIR__ . '/fixture/database/migrations/',
40+
]);
3841
$this->seeArtisanOutput(__DIR__ . '/migrate.output.txt');
3942
}
4043

tests/TestingTools/fixture/app/Providers/FixtureServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ public function register()
1212

1313
public function boot()
1414
{
15-
$this->loadMigrationsFrom(__DIR__ . '/../../database/migrations/');
15+
if (method_exists($this, 'loadMigrationsFrom')) {
16+
$this->loadMigrationsFrom(__DIR__ . '/../../database/migrations/');
17+
}
1618
}
1719

1820
private function registerAliases()

0 commit comments

Comments
 (0)