aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-07-11 18:57:18 +0000
committerMario <mario@mariovavti.com>2023-07-11 18:57:18 +0000
commit63fb8d03929189bfc8cbf53d23cb79984fe2c3cd (patch)
treeb9f74bd8c7721dca7ece251fdbb9a7c4fe9b949a /tests
parent57796a2f962d045445cbf69237bb3d6786e4d0d4 (diff)
parent384de0925e502cfa8fe6ca287530ef5529fdff10 (diff)
downloadvolse-hubzilla-8.6.tar.gz
volse-hubzilla-8.6.tar.bz2
volse-hubzilla-8.6.zip
Merge branch '8.6RC'8.6
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/UnitTestCase.php6
-rw-r--r--tests/unit/includes/MarkdownTest.php4
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 <',
- '&amp; gt &gt; lt'
+ '&amp; gt &gt; lt &lt;'
],
'escaped HTML entities' => [
'&amp; lt &lt; gt &gt;',