File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
tests/system/Database/Live Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,11 @@ public function testCreateDatabaseWithDots(): void
81
81
$ this ->assertFalse ($ result );
82
82
83
83
$ db ->close ();
84
+
84
85
if ($ this ->db ->DBDriver !== 'SQLite3 ' ) {
85
86
$ this ->forge ->dropDatabase ($ dbName );
87
+ } elseif (is_file ($ db ->database )) {
88
+ unlink ($ db ->database );
86
89
}
87
90
}
88
91
Original file line number Diff line number Diff line change @@ -51,6 +51,15 @@ protected function setUp(): void
51
51
$ this ->forge = Database::forge ($ config );
52
52
}
53
53
54
+ protected function tearDown (): void
55
+ {
56
+ parent ::tearDown ();
57
+
58
+ if ($ this ->db ->DBDriver === 'SQLite3 ' && is_file ($ this ->db ->database )) {
59
+ unlink ($ this ->db ->database );
60
+ }
61
+ }
62
+
54
63
public function testGetIndexData (): void
55
64
{
56
65
// INTEGER PRIMARY KEY AUTO_INCREMENT doesn't get an index by default
You can’t perform that action at this time.
0 commit comments