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
This commit is contained in:
Harald Eilertsen
2026-03-11 11:40:31 +01:00
parent 81105ff9de
commit 33c95c810a

View File

@@ -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];