File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed
Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 22
33namespace Illuminated \Testing \TestingTools \Tests ;
44
5+ use FixtureServiceProvider ;
56use Illuminate \Contracts \Console \Kernel as KernelContract ;
67use Illuminate \Support \Facades \DB ;
78use Illuminated \Testing \TestingTools ;
89use Kernel ;
9- use Orchestra \Database \ConsoleServiceProvider ;
1010
1111abstract 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 ()
Original file line number Diff line number Diff line change 1+ Migration table created successfully.
2+ Migrated: 2016_11_01_131415_create_posts_table
3+ Migrated: 2016_11_01_131425_create_comments_table
You can’t perform that action at this time.
0 commit comments