File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -8,26 +8,23 @@ class DbTestCase extends TestCase
88{
99
1010
11- protected array $ migrations = [];
11+ protected array $ migrations = [
12+ 'Database/Migrations/Default/ ' ,
13+ ];
1214
1315 protected function setUp (): void
1416 {
1517 parent ::setUp ();
1618 $ migrations = $ this ->getMigrations ();
1719 foreach ($ migrations as $ migrationPath ) {
18- $ this ->loadMigrationsFrom ($ migrationPath );
20+ $ this ->loadMigrationsFrom ($ this -> resourceFolder . $ migrationPath );
1921 }
2022
2123 $ this ->loadLaravelMigrations (['--database ' => env ('DB_CONNECTION ' , 'mysql ' )]);
2224 }
2325
2426 public function getMigrations (): array
2527 {
26- if (0 === count ($ this ->migrations )) {
27- $ this ->setMigrations ([
28- $ this ->resourceFolder . 'Database/Migrations/Default/ ' ,
29- ]);
30- }
3128 return $ this ->migrations ;
3229 }
3330
You can’t perform that action at this time.
0 commit comments