aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2023-06-14 23:00:44 +0200
committerHarald Eilertsen <haraldei@anduin.net>2023-06-14 23:00:44 +0200
commit8c85516c57cad928758623129a4258730b14c98f (patch)
treefc88a79b21b3ff43607f9712fa1d991d08102c5b /tests
parent404189f88c65d9287ca5b740af00e61b79cf685d (diff)
downloadvolse-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')
-rw-r--r--tests/unit/UnitTestCase.php6
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.
*