From 33c95c810a24494632d399a2d2433c732ae1b756 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Wed, 11 Mar 2026 11:40:31 +0100 Subject: [PATCH] tests: Make loadFixtures public Some tests will need to load their own database fixtures. By making this API public we make it easy for them to do so. This change is needed by the tests for the Superblock addon. Project......: Improve Superblock Addon Sponsored-by.: NLnet NGI0 Commons Fund --- tests/unit/UnitTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/UnitTestCase.php b/tests/unit/UnitTestCase.php index 6ab518336..858a9fcae 100644 --- a/tests/unit/UnitTestCase.php +++ b/tests/unit/UnitTestCase.php @@ -181,7 +181,7 @@ class UnitTestCase extends TestCase { * directory of the process, which should normally * be the Hubzilla root directory. */ - private function loadFixture($file) : void { + public function loadFixture($file) : void { $table_name = basename($file, '.yml'); $data = yaml_parse_file($file)[$table_name];