diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2024-01-08 13:49:08 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2024-01-08 14:09:13 +0100 |
commit | 43dabee53d36de6c8b3059d535acad5bcfe484aa (patch) | |
tree | 6ae4d7c286dbf4532dda233928311591d8e72c6e /tests | |
parent | f01676085101e2687d15ddd1290cc22cfbfdc150 (diff) | |
download | volse-hubzilla-43dabee53d36de6c8b3059d535acad5bcfe484aa.tar.gz volse-hubzilla-43dabee53d36de6c8b3059d535acad5bcfe484aa.tar.bz2 volse-hubzilla-43dabee53d36de6c8b3059d535acad5bcfe484aa.zip |
tests: Set app config in a known state for each test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/UnitTestCase.php | 5 |
1 files changed, 4 insertions, 1 deletions
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 { |