@@ -14,7 +14,7 @@ protected function setUp(): void
14
14
{
15
15
parent ::setUp ();
16
16
17
- $ this ->withFactories (__DIR__ . '/Fixtures/database/factories ' );
17
+ $ this ->withFactories (__DIR__ . '/Fixtures/database/factories ' );
18
18
}
19
19
20
20
/**
@@ -24,7 +24,7 @@ protected function setUp(): void
24
24
*/
25
25
protected function refreshInMemoryDatabase ()
26
26
{
27
- $ this ->artisan ('migrate ' , ['--path ' => __DIR__ . '/Fixtures/database/migrations ' , '--realpath ' => true ]);
27
+ $ this ->artisan ('migrate ' , ['--path ' => __DIR__ . '/Fixtures/database/migrations ' , '--realpath ' => true ]);
28
28
29
29
$ this ->app [Kernel::class]->setArtisan (null );
30
30
}
@@ -37,7 +37,7 @@ protected function refreshInMemoryDatabase()
37
37
protected function refreshTestDatabase ()
38
38
{
39
39
if (!RefreshDatabaseState::$ migrated ) {
40
- $ this ->artisan ('migrate ' , ['--path ' => __DIR__ . '/Fixtures/database/migrations ' , '--realpath ' => true ]);
40
+ $ this ->artisan ('migrate ' , ['--path ' => __DIR__ . '/Fixtures/database/migrations ' , '--realpath ' => true ]);
41
41
42
42
$ this ->app [Kernel::class]->setArtisan (null );
43
43
@@ -50,7 +50,15 @@ protected function refreshTestDatabase()
50
50
protected function getPackageProviders ($ app )
51
51
{
52
52
return [
53
- 'Orion\Tests\Fixtures\App\Providers\OrionServiceProvider '
53
+ 'Orion\Tests\Fixtures\App\Providers\OrionServiceProvider ' ,
54
54
];
55
55
}
56
+
57
+ protected function getEnvironmentSetUp ($ app )
58
+ {
59
+ $ app ['config ' ]->set ('auth.guards.api ' , [
60
+ 'driver ' => 'token ' ,
61
+ 'provider ' => 'users ' ,
62
+ ]);
63
+ }
56
64
}
0 commit comments