aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/plugins/PluginMarkdownTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins/PluginMarkdownTest.php')
-rw-r--r--tests/plugins/PluginMarkdownTest.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/plugins/PluginMarkdownTest.php b/tests/plugins/PluginMarkdownTest.php
index 31c1f8b7..44364b05 100644
--- a/tests/plugins/PluginMarkdownTest.php
+++ b/tests/plugins/PluginMarkdownTest.php
@@ -109,6 +109,18 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase
109 } 109 }
110 110
111 /** 111 /**
112 * Test reverse_text2clickable().
113 */
114 public function testReverseText2clickableHashtags()
115 {
116 $text = file_get_contents('tests/plugins/resources/hashtags.raw');
117 $md = file_get_contents('tests/plugins/resources/hashtags.md');
118 $clickableText = hashtag_autolink($text);
119 $reversedText = reverse_text2clickable($clickableText);
120 $this->assertEquals($md, $reversedText);
121 }
122
123 /**
112 * Test reverse_nl2br(). 124 * Test reverse_nl2br().
113 */ 125 */
114 public function testReverseNl2br() 126 public function testReverseNl2br()
@@ -248,7 +260,7 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase
248 $this->conf->get('security.markdown_escape', true), 260 $this->conf->get('security.markdown_escape', true),
249 $this->conf->get('security.allowed_protocols') 261 $this->conf->get('security.allowed_protocols')
250 ); 262 );
251 $this->assertEquals($html, $data); 263 $this->assertEquals($html, $data . PHP_EOL);
252 } 264 }
253 265
254 /** 266 /**