From 64c9cda54e87ddc63e8732eb8f4bfe9674edaaf2 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 10 Oct 2018 23:38:22 +0200 Subject: [PATCH] Remove sqlite database after test --- .../Database/Connection/SQLiteConnectionTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/DataStorage/Database/Connection/SQLiteConnectionTest.php b/tests/DataStorage/Database/Connection/SQLiteConnectionTest.php index 7b95355b8..107e18e75 100644 --- a/tests/DataStorage/Database/Connection/SQLiteConnectionTest.php +++ b/tests/DataStorage/Database/Connection/SQLiteConnectionTest.php @@ -53,4 +53,11 @@ class SQLiteConnectionTest extends \PHPUnit\Framework\TestCase unset($db['database']); $sqlite = new SQLiteConnection($db); } + + static function tearDownAfterClass() + { + if (\file_exists($GLOBALS['CONFIG']['db']['core']['sqlite']['admin']['database'])) { + \unlink($GLOBALS['CONFIG']['db']['core']['sqlite']['admin']['database']); + } + } }