Skip to content

Commit

Permalink
Switched from artisan to loadMigrationsFrom command to continue using…
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Heller committed Jul 19, 2017
1 parent 3673e5e commit 68c8264
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Illuminate\Support\Facades\DB;
use Laracasts\TestDummy\Factory;
use Spiritix\LadaCache\LadaCacheServiceProvider;
use Orchestra\Database\ConsoleServiceProvider;

class TestCase extends \Orchestra\Testbench\TestCase
{
Expand All @@ -14,9 +15,9 @@ public function setUp()
{
parent::setUp();

$this->artisan('migrate', [
$this->loadMigrationsFrom([
'--database' => 'testing',
'--realpath' => realpath(__DIR__ . '/../database/migrations'),
'--realpath' => realpath(__DIR__.'/../database/migrations'),
]);

$this->factory = new Factory(__DIR__ . '/../database/factories');
Expand All @@ -33,7 +34,10 @@ public function tearDown()

protected function getPackageProviders($app)
{
return [LadaCacheServiceProvider::class];
return [
LadaCacheServiceProvider::class,
ConsoleServiceProvider::class
];
}

protected function getEnvironmentSetUp($app)
Expand Down

0 comments on commit 68c8264

Please sign in to comment.