Skip to content

Commit 22061a3

Browse files
Update tests/TestCase/Command/BakeMigrationDiffCommandTest.php
Co-authored-by: Mark Story <mark@mark-story.com>
1 parent 0dc4fad commit 22061a3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/TestCase/Command/BakeMigrationDiffCommandTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ public function tearDown(): void
9999
unlink($file);
100100
}
101101
}
102+
$initialMigrationFiles = glob($dir . DS . '*Initial*.php') ?: [];
103+
foreach ($initialMigrationFiles as $file) {
104+
if (file_exists($file)) {
105+
unlink($file);
106+
}
107+
}
102108
}
103109

104110
if (env('DB_URL_COMPARE')) {

0 commit comments

Comments
 (0)