diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-01-25 12:23:27 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-01-25 12:23:27 -0500 |
commit | 0812ceedde2f89a8e4b391e58d6463f832ecec8e (patch) | |
tree | 2653eb64866eae8bcf93c24a643b7d2b1110a060 /tests/units | |
parent | e506648cbcda0b6021cf0a3b5e2f6381d8f1d0ea (diff) |
Merge fix #545, fix invalid HTML when linking to URLs with numeric fragment identifiers and update Parsedown
Diffstat (limited to 'tests/units')
-rw-r--r-- | tests/units/HelperTest.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/units/HelperTest.php b/tests/units/HelperTest.php index 2ae75684..8694e8a2 100644 --- a/tests/units/HelperTest.php +++ b/tests/units/HelperTest.php @@ -18,8 +18,16 @@ class HelperTest extends Base ); $this->assertEquals( - '<p>Task <a href="?controller=a&action=b&c=d&task_id=123" class="" title="" >#123</a></p>', + '<p>Task <a href="?controller=a&action=b&c=d&task_id=123">#123</a></p>', $h->markdown('Task #123', array('controller' => 'a', 'action' => 'b', 'params' => array('c' => 'd'))) ); + + $this->assertEquals( + '<p>Check that: <a href="http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454">http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454</a></p>', + $h->markdown( + 'Check that: http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454', + array('controller' => 'a', 'action' => 'b', 'params' => array('c' => 'd')) + ) + ); } } |