Skip to content

Commit 0fc3cc8

Browse files
Updating the tests
1 parent 4b0c1c2 commit 0fc3cc8

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: php
33
sudo: false
44

55
php:
6-
- 7.0
6+
- 7.1.3
77
- 7.1
88
- 7.2
99
- nightly

tests/TestCase.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public function setUp()
4242
protected function getPackageProviders($app)
4343
{
4444
return [
45-
\Orchestra\Database\ConsoleServiceProvider::class,
4645
\Arcanedev\LaravelNotes\LaravelNotesServiceProvider::class,
4746
];
4847
}
@@ -85,15 +84,14 @@ protected function getEnvironmentSetUp($app)
8584
*/
8685
protected function migrate()
8786
{
88-
$this->artisan('migrate', [
89-
'--database' => 'testing',
90-
'--realpath' => realpath(__DIR__.'/../database/migrations'),
87+
$migrations = array_map('realpath', [
88+
__DIR__.'/../database/migrations',
89+
__DIR__.'/fixtures/migrations',
9190
]);
9291

93-
$this->artisan('migrate', [
94-
'--database' => 'testing',
95-
'--realpath' => realpath(__DIR__.'/fixtures/migrations'),
96-
]);
92+
foreach ($migrations as $path) {
93+
$this->loadMigrationsFrom($path);
94+
}
9795
}
9896

9997
/**

0 commit comments

Comments
 (0)