Skip to content

Commit ed917b3

Browse files
committed
ITT: Removed orchestra/database.
1 parent f119dfe commit ed917b3

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

tests/TestingTools/TestCase.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace Illuminated\Testing\TestingTools\Tests;
44

5+
use FixtureServiceProvider;
56
use Illuminate\Contracts\Console\Kernel as KernelContract;
67
use Illuminate\Support\Facades\DB;
78
use Illuminated\Testing\TestingTools;
89
use Kernel;
9-
use Orchestra\Database\ConsoleServiceProvider;
1010

1111
abstract class TestCase extends \Orchestra\Testbench\TestCase
1212
{
@@ -25,11 +25,7 @@ public function setUp()
2525

2626
protected function getPackageProviders($app)
2727
{
28-
if (class_exists(ConsoleServiceProvider::class)) {
29-
return [ConsoleServiceProvider::class];
30-
}
31-
32-
return [];
28+
return [FixtureServiceProvider::class];
3329
}
3430

3531
protected function setUpDatabase()
@@ -38,10 +34,8 @@ protected function setUpDatabase()
3834

3935
DB::statement('PRAGMA foreign_keys = ON');
4036

41-
$this->loadMigrationsFrom([
42-
'--database' => 'testing',
43-
'--realpath' => __DIR__ . '/fixture/database/migrations',
44-
]);
37+
$this->artisan('migrate', ['--database' => 'testing']);
38+
$this->seeArtisanOutput(__DIR__ . '/migrate.output.txt');
4539
}
4640

4741
private function setUpFactories()
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Migration table created successfully.
2+
Migrated: 2016_11_01_131415_create_posts_table
3+
Migrated: 2016_11_01_131425_create_comments_table

0 commit comments

Comments
 (0)