Show profile link for @username mentions
This commit is contained in:
@@ -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&action=profile&user_id=1" class="user-mention-link">@admin</a> @notfound</p>', $h->markdown('Text @admin @notfound'));
|
||||
}
|
||||
|
||||
public function testFormatBytes()
|
||||
{
|
||||
$h = new Text($this->container);
|
||||
|
||||
Reference in New Issue
Block a user