diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2023-06-14 23:00:44 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2023-06-14 23:00:44 +0200 |
commit | 8c85516c57cad928758623129a4258730b14c98f (patch) | |
tree | fc88a79b21b3ff43607f9712fa1d991d08102c5b /tests/unit/UnitTestCase.php | |
parent | 404189f88c65d9287ca5b740af00e61b79cf685d (diff) | |
download | volse-hubzilla-8c85516c57cad928758623129a4258730b14c98f.tar.gz volse-hubzilla-8c85516c57cad928758623129a4258730b14c98f.tar.bz2 volse-hubzilla-8c85516c57cad928758623129a4258730b14c98f.zip |
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.
Diffstat (limited to 'tests/unit/UnitTestCase.php')
-rw-r--r-- | tests/unit/UnitTestCase.php | 6 |
1 files changed, 6 insertions, 0 deletions
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. * |