aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-06-15 20:40:28 +0000
committerMario <mario@mariovavti.com>2023-06-15 20:40:28 +0000
commit774a9b118eb764f5836657fc7c6b17d5a1fe0f9e (patch)
tree1533947262165e9d8956452c2624e131d176f863
parent327841280b8062044287e4a55747ea0afe781192 (diff)
parent1fcb05ed8c0804ebd0f01e6881fc6e40555d3b60 (diff)
downloadvolse-hubzilla-774a9b118eb764f5836657fc7c6b17d5a1fe0f9e.tar.gz
volse-hubzilla-774a9b118eb764f5836657fc7c6b17d5a1fe0f9e.tar.bz2
volse-hubzilla-774a9b118eb764f5836657fc7c6b17d5a1fe0f9e.zip
Merge branch 'make-unit-tests-pass' into 'dev'
Make unit tests pass See merge request hubzilla/core!2041
-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;',