Skip to content

Commit 60542f5

Browse files
committed
Fix sqlite tests
1 parent 2672aaa commit 60542f5

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

tests/e2e/Adapter/Scopes/JoinsTests.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,4 +890,19 @@ public function testJoinsSum(): void
890890
$count = $database->count('__sessions', $queries);
891891
$this->assertEquals(2, $count);
892892
}
893+
894+
public function testCleanUp(): void
895+
{
896+
/** @var Database $database */
897+
$database = $this->getDatabase();
898+
899+
if (!$database->getAdapter()->getSupportForJoins()) {
900+
$this->expectNotToPerformAssertions();
901+
return;
902+
}
903+
904+
$this->assertTrue($database->deleteCollection('__users'));
905+
$this->assertTrue($database->deleteCollection('__sessions'));
906+
$this->assertTrue($database->deleteCollection('__banks'));
907+
}
893908
}

0 commit comments

Comments
 (0)