summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBusfreak <martin@middeke.de>2015-12-17 19:31:57 +0100
committerBusfreak <martin@middeke.de>2015-12-17 19:31:57 +0100
commitc51ecdf2a68bae469f721ff66e1ea99569c70477 (patch)
treea1fdbee2ecc6026c192126db8be78db45e22b80b /tests
parent16e8241f0f29f0afb9c4ad4c6f68699d62d889ff (diff)
parent7f980cffcc3a20f5c93e128313c1a4a47b39dc8e (diff)
Merge remote-tracking branch 'refs/remotes/fguillot/master'
Diffstat (limited to 'tests')
-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);