test(DbHandler): make sure auto-increment is reset in between tests

DELETE doesn't reset auto-increment; TRUNCATE does. Also probably faster.

Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
Josh
2026-02-20 23:57:14 -05:00
committed by GitHub
parent 5a5f82c52e
commit 4fb010384c

View File

@@ -43,9 +43,7 @@ class DbHandlerTest extends TestCase {
}
protected function tearDown(): void {
$query = $this->connection->getQueryBuilder()->delete($this->dbTable);
$query->executeStatement()
;
$this->connection->truncateTable($this->dbTable);
parent::tearDown();
}