From efaa41ac402b229a92acc6ad846232d67a62a930 Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 19 Jan 2024 11:20:33 +0900 Subject: [PATCH] test: remove test1 table after testing --- tests/system/Database/Live/SQLite3/GetFieldDataTest.php | 2 ++ tests/system/Database/Live/SQLite3/GetIndexDataTest.php | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/system/Database/Live/SQLite3/GetFieldDataTest.php b/tests/system/Database/Live/SQLite3/GetFieldDataTest.php index 978a6704e570..252c6485f7f8 100644 --- a/tests/system/Database/Live/SQLite3/GetFieldDataTest.php +++ b/tests/system/Database/Live/SQLite3/GetFieldDataTest.php @@ -147,5 +147,7 @@ public function testGetFieldData(): void ]), json_encode($fields) ); + + $this->forge->dropTable('test1', true); } } diff --git a/tests/system/Database/Live/SQLite3/GetIndexDataTest.php b/tests/system/Database/Live/SQLite3/GetIndexDataTest.php index 6fdd81b345eb..cf05b7a7f07b 100644 --- a/tests/system/Database/Live/SQLite3/GetIndexDataTest.php +++ b/tests/system/Database/Live/SQLite3/GetIndexDataTest.php @@ -45,7 +45,6 @@ protected function setUp(): void 'database' => 'database.db', 'DBDebug' => true, ]; - $this->db = db_connect($config); $this->forge = Database::forge($config); }