Skip to content

Commit 2d7c948

Browse files
committed
Fix test migrations not running in CI
Add missing migrateRefresh property and database connection option to ensure RefreshDatabase trait actually runs the migrations.
1 parent 99dfbdf commit 2d7c948

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/Core/Database/Eloquent/Concerns/HasUlidsTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ class HasUlidsTest extends TestCase
1818
{
1919
use RefreshDatabase;
2020

21+
protected bool $migrateRefresh = true;
22+
2123
protected function migrateFreshUsing(): array
2224
{
2325
return [
26+
'--database' => $this->getRefreshConnection(),
2427
'--realpath' => true,
2528
'--path' => __DIR__ . '/migrations',
2629
];

tests/Core/Database/Eloquent/Concerns/HasUuidsTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ class HasUuidsTest extends TestCase
1818
{
1919
use RefreshDatabase;
2020

21+
protected bool $migrateRefresh = true;
22+
2123
protected function migrateFreshUsing(): array
2224
{
2325
return [
26+
'--database' => $this->getRefreshConnection(),
2427
'--realpath' => true,
2528
'--path' => __DIR__ . '/migrations',
2629
];

0 commit comments

Comments
 (0)