Skip to content

Commit f12391c

Browse files
committed
test: remove database.db after testing
1 parent 3b60067 commit f12391c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/system/Database/Live/SQLite3/GetFieldDataTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,5 +147,7 @@ public function testGetFieldData(): void
147147
]),
148148
json_encode($fields)
149149
);
150+
151+
$this->forge->dropDatabase(WRITEPATH . 'database.db');
150152
}
151153
}

tests/system/Database/Live/SQLite3/GetIndexDataTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ protected function setUp(): void
4545
'database' => 'database.db',
4646
'DBDebug' => true,
4747
];
48-
4948
$this->db = db_connect($config);
5049
$this->forge = Database::forge($config);
5150
}
@@ -100,5 +99,7 @@ public function testGetIndexData(): void
10099
$this->assertSame($expectedIndexes['testuser_country']->type, $indexes['testuser_country']->type);
101100

102101
$this->forge->dropTable('testuser', true);
102+
103+
$this->forge->dropDatabase(WRITEPATH . 'database.db');
103104
}
104105
}

0 commit comments

Comments
 (0)