summaryrefslogtreecommitdiff
path: root/tests/units/Helper/TextHelperTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/Helper/TextHelperTest.php')
-rw-r--r--tests/units/Helper/TextHelperTest.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/units/Helper/TextHelperTest.php b/tests/units/Helper/TextHelperTest.php
index 30c537a9..a4bdfa91 100644
--- a/tests/units/Helper/TextHelperTest.php
+++ b/tests/units/Helper/TextHelperTest.php
@@ -6,7 +6,7 @@ use Kanboard\Helper\Text;
class TextHelperTest extends Base
{
- public function testMarkdown()
+ public function testMarkdownTaskLink()
{
$h = new Text($this->container);
@@ -31,6 +31,12 @@ class TextHelperTest extends Base
);
}
+ public function testMarkdownUserLink()
+ {
+ $h = new Text($this->container);
+ $this->assertEquals('<p>Text <a href="?controller=user&amp;action=profile&amp;user_id=1" class="user-mention-link">@admin</a> @notfound</p>', $h->markdown('Text @admin @notfound'));
+ }
+
public function testFormatBytes()
{
$h = new Text($this->container);