about summary refs log tree commit diff stats
path: root/tests_integration/DbTestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests_integration/DbTestCase.php')
-rw-r--r--tests_integration/DbTestCase.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests_integration/DbTestCase.php b/tests_integration/DbTestCase.php
index 5654017..a6ed51d 100644
--- a/tests_integration/DbTestCase.php
+++ b/tests_integration/DbTestCase.php
@@ -4,10 +4,14 @@ use PHPUnit\Framework\TestCase;
 abstract class DbTestCase extends TestCase {
 
 	protected function setUp(): void {
-
+		$_SESSION["owner"] = "test";
 	}
 
 	protected function tearDown(): void {
+		if (session_status() == PHP_SESSION_ACTIVE)
+			session_destroy();
 
+		// reset any possible local config changes
+		Config::get_instance()->reload();
 	}
 }