summaryrefslogtreecommitdiff
path: root/tests/units
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-15 22:39:39 -0500
committerFrederic Guillot <fred@kanboard.net>2015-12-15 22:39:39 -0500
commit7f980cffcc3a20f5c93e128313c1a4a47b39dc8e (patch)
treea1fdbee2ecc6026c192126db8be78db45e22b80b /tests/units
parent9e1f4fa6c7eae1b46cf5431ab085b82e970e2d57 (diff)
Show profile link for @username mentions
Diffstat (limited to 'tests/units')
-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);