Skip to content

Commit a5cf0de

Browse files
committed
changed tests class.
1 parent ef763fa commit a5cf0de

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tests/DbTestCase.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)