From fedf29e02320b4791ca6f15a2c6bb41e5712c415 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 11 Mar 2019 15:27:22 -0400 Subject: [PATCH] Add tests for bug #6857 --- tests/src/Content/Text/BBCodeTest.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/src/Content/Text/BBCodeTest.php b/tests/src/Content/Text/BBCodeTest.php index f155eeee3d..fe37b91cd1 100644 --- a/tests/src/Content/Text/BBCodeTest.php +++ b/tests/src/Content/Text/BBCodeTest.php @@ -86,6 +86,22 @@ class BBCodeTest extends MockedTest 'data' => 'http://example/path', 'assertHTML' => false ], + 'bug-6857-domain-start' => [ + 'data' => "http://\nexample.com", + 'assertHTML' => false + ], + 'bug-6857-domain-end' => [ + 'data' => "http://example\n.com", + 'assertHTML' => false + ], + 'bug-6857-tld' => [ + 'data' => "http://example.\ncom", + 'assertHTML' => false + ], + 'bug-6857-end' => [ + 'data' => "http://example.com\ntest", + 'assertHTML' => false + ], ]; } @@ -108,4 +124,4 @@ class BBCodeTest extends MockedTest $this->assertEquals($assert, $output); } -} \ No newline at end of file +} -- 2.39.5