Skip to content

Commit 6b5e65c

Browse files
committed
test(Database): fix state leakage in MigrationRunnerTest by dropping all tables in tearDown
1 parent 7aae9e8 commit 6b5e65c

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

tests/system/Database/Migrations/MigrationRunnerTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,7 @@ protected function tearDown(): void
6969
{
7070
parent::tearDown();
7171

72-
// To delete data with `$this->regressDatabase()`, set it true.
73-
$this->migrate = true;
74-
$this->regressDatabase();
75-
76-
$forge = Database::forge($this->db);
77-
$forge->dropTable('migrations_lock', true);
72+
$this->resetTables();
7873
}
7974

8075
public function testLoadsDefaultDatabaseWhenNoneSpecified(): void

0 commit comments

Comments
 (0)