]> git.mxchange.org Git - friendica.git/commitdiff
Add tests for bug #6857
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 11 Mar 2019 19:27:22 +0000 (15:27 -0400)
committerGitHub <noreply@github.com>
Mon, 11 Mar 2019 19:27:22 +0000 (15:27 -0400)
tests/src/Content/Text/BBCodeTest.php

index f155eeee3d99a57cff3bcdf0034094f2981377aa..fe37b91cd1f709e4550d7f6e19b40134c980304b 100644 (file)
@@ -86,6 +86,22 @@ class BBCodeTest extends MockedTest
                                'data' => 'http://example/path',\r
                                'assertHTML' => false\r
                        ],\r
+                       'bug-6857-domain-start' => [\r
+                               'data' => "http://\nexample.com",\r
+                               'assertHTML' => false\r
+                       ],\r
+                       'bug-6857-domain-end' => [\r
+                               'data' => "http://example\n.com",\r
+                               'assertHTML' => false\r
+                       ],\r
+                       'bug-6857-tld' => [\r
+                               'data' => "http://example.\ncom",\r
+                               'assertHTML' => false\r
+                       ],\r
+                       'bug-6857-end' => [\r
+                               'data' => "http://example.com\ntest",\r
+                               'assertHTML' => false\r
+                       ],\r
                ];\r
        }\r
 \r
@@ -108,4 +124,4 @@ class BBCodeTest extends MockedTest
 \r
                $this->assertEquals($assert, $output);\r
        }\r
-}
\ No newline at end of file
+}\r