Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lianguan authored Jan 5, 2018
1 parent bcfb388 commit a97dac2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/units/Helper/TextHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testMarkdownTaskLink()
$this->assertEquals('<p>Test</p>', $helper->markdown('Test'));

$this->assertEquals(
'<p>Task <a href="?controller=Task/TaskController&amp;action=show&amp;task_id=123">#123</a></p>',
'<p>Task <a href="t/123">#123</a></p>',
$helper->markdown('Task #123')
);

Expand All @@ -41,7 +41,7 @@ public function testMarkdownTaskLink()
);

$this->assertEquals(
'<p>Task <a href="?controller=Task/TaskController&amp;action=readonly&amp;token='.$project['token'].'&amp;task_id=1">#1</a></p>',
'<p>Task <a href="public/task/1/'.$project['token'].'">#1</a></p>',
$helper->markdown('Task #1', true)
);

Expand All @@ -56,7 +56,7 @@ public function testMarkdownTaskLink()
public function testMarkdownUserLink()
{
$h = new TextHelper($this->container);
$this->assertEquals('<p>Text <a href="?controller=Profile/ProfileController&amp;action=show&amp;user_id=1" class="user-mention-link">@admin</a> @notfound</p>', $h->markdown('Text @admin @notfound'));
$this->assertEquals('<p>Text <a href="profile/1" class="user-mention-link">@admin</a> @notfound</p>', $h->markdown('Text @admin @notfound'));
$this->assertEquals('<p>Text @admin @notfound</p>', $h->markdown('Text @admin @notfound', true));
}

Expand Down

0 comments on commit a97dac2

Please sign in to comment.