summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-01-25 12:23:27 -0500
committerFrederic Guillot <fred@kanboard.net>2015-01-25 12:23:27 -0500
commit0812ceedde2f89a8e4b391e58d6463f832ecec8e (patch)
tree2653eb64866eae8bcf93c24a643b7d2b1110a060 /tests
parente506648cbcda0b6021cf0a3b5e2f6381d8f1d0ea (diff)
Merge fix #545, fix invalid HTML when linking to URLs with numeric fragment identifiers and update Parsedown
Diffstat (limited to 'tests')
-rw-r--r--tests/units/HelperTest.php10
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&amp;action=b&amp;c=d&amp;task_id=123" class="" title="" >#123</a></p>',
+ '<p>Task <a href="?controller=a&amp;action=b&amp;c=d&amp;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'))
+ )
+ );
}
}