aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-01-08 13:49:08 +0100
committerHarald Eilertsen <haraldei@anduin.net>2024-01-08 14:09:13 +0100
commit43dabee53d36de6c8b3059d535acad5bcfe484aa (patch)
tree6ae4d7c286dbf4532dda233928311591d8e72c6e /tests
parentf01676085101e2687d15ddd1290cc22cfbfdc150 (diff)
downloadvolse-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.php5
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 {