mirror of
https://github.com/nextcloud/server.git
synced 2026-02-27 18:37:17 +01:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user