diff options
-rw-r--r-- | tests/unit/UnitTestCase.php | 6 | ||||
-rw-r--r-- | tests/unit/includes/MarkdownTest.php | 4 |
2 files changed, 8 insertions, 2 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. * diff --git a/tests/unit/includes/MarkdownTest.php b/tests/unit/includes/MarkdownTest.php index 98fe40a49..953305074 100644 --- a/tests/unit/includes/MarkdownTest.php +++ b/tests/unit/includes/MarkdownTest.php @@ -62,9 +62,9 @@ class MarkdownTest extends UnitTestCase { 'text1 <b></b> text2 <i></i>', 'text1 text2' ], - 'HTML entities, lt does not work' => [ + 'HTML entities' => [ '& gt > lt <', - '& gt > lt' + '& gt > lt <' ], 'escaped HTML entities' => [ '& lt < gt >', |