Skip to content

Commit 5ab39ad

Browse files
#293: remove stale v2 backfill migration tests
1 parent 92c3d1e commit 5ab39ad

3 files changed

Lines changed: 18 additions & 206 deletions

File tree

tests/Unit/migrations/MigrationsTest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,24 @@
99

1010
final class MigrationsTest extends TestCase
1111
{
12+
public function testV2MigrationSetDoesNotShipPreviewBackfillMigrations(): void
13+
{
14+
$files = glob(dirname(__DIR__, 3) . '/src/migrations/2026_04_*.php') ?: [];
15+
16+
$this->assertNotEmpty($files);
17+
18+
$backfillFiles = array_values(array_filter(
19+
array_map('basename', $files),
20+
static fn (string $file): bool => str_contains($file, 'backfill'),
21+
));
22+
23+
$this->assertSame(
24+
[],
25+
$backfillFiles,
26+
'Unreleased v2 migrations must not ship preview-era backfill migrations.',
27+
);
28+
}
29+
1230
public function testDownMethodsDropTables(): void
1331
{
1432
$this->assertTrue(Schema::hasTable('workflows'));

tests/Unit/migrations/V2ActivityAttemptIdentityBackfillMigrationTest.php

Lines changed: 0 additions & 137 deletions
This file was deleted.

tests/Unit/migrations/V2CompatibilityBackfillMigrationTest.php

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)