Show profile link for @username mentions

This commit is contained in:
Frederic Guillot
2015-12-15 22:39:39 -05:00
parent 9e1f4fa6c7
commit 7f980cffcc
11 changed files with 133 additions and 24 deletions

View File

@@ -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);