From 8c85516c57cad928758623129a4258730b14c98f Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Wed, 14 Jun 2023 23:00:44 +0200 Subject: Unit tests: Book Hubzilla to make app env available in tests. Not quite unit test clean, but a somewhat pragmatic approach to make the tests pass as is. --- tests/unit/UnitTestCase.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/unit/UnitTestCase.php b/tests/unit/UnitTestCase.php index 7d706d5be..f6fb28555 100644 --- a/tests/unit/UnitTestCase.php +++ b/tests/unit/UnitTestCase.php @@ -24,6 +24,12 @@ namespace Zotlabs\Tests\Unit; use PHPUnit\Framework\TestCase; +/* + * Make sure global constants and the global App object is available to the + * tests. + */ +require_once __DIR__ . '/../../boot.php'; + /** * @brief Base class for our Unit Tests. * -- cgit v1.2.3