From 43dabee53d36de6c8b3059d535acad5bcfe484aa Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 8 Jan 2024 13:49:08 +0100 Subject: tests: Set app config in a known state for each test --- tests/unit/UnitTestCase.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/unit/UnitTestCase.php b/tests/unit/UnitTestCase.php index 60db5a4b5..97ac1576e 100644 --- a/tests/unit/UnitTestCase.php +++ b/tests/unit/UnitTestCase.php @@ -78,8 +78,11 @@ class UnitTestCase extends TestCase { $this->in_transaction = \DBA::$dba->db->beginTransaction(); $this->loadFixtures(); - } + + // Make sure app config is reset and loaded from fixtures + \App::$config = array(); + \Zotlabs\Lib\Config::Load('system'); } protected function tearDown() : void { -- cgit v1.2.3