diff options
Diffstat (limited to 'tests_integration/DbTestCase.php')
| -rw-r--r-- | tests_integration/DbTestCase.php | 6 |
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(); } } |
