diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2015-12-05 19:48:01 +0100 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-12-26 14:19:22 +0100 |
commit | 8fe94a19b46c4e33a117c1a040415f2b1c397e7c (patch) | |
tree | 97a3279742d78a2cc30cfbf1dfc4d889c7b190d5 /tests/text_formatter/s9e | |
parent | eb6ceb963ea7b32ef852b53d3da3a7e795291359 (diff) | |
download | forums-8fe94a19b46c4e33a117c1a040415f2b1c397e7c.tar forums-8fe94a19b46c4e33a117c1a040415f2b1c397e7c.tar.gz forums-8fe94a19b46c4e33a117c1a040415f2b1c397e7c.tar.bz2 forums-8fe94a19b46c4e33a117c1a040415f2b1c397e7c.tar.xz forums-8fe94a19b46c4e33a117c1a040415f2b1c397e7c.zip |
[ticket/14323] Added support for truncating local URLs
PHPBB3-14323
Diffstat (limited to 'tests/text_formatter/s9e')
-rw-r--r-- | tests/text_formatter/s9e/default_formatting_test.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/text_formatter/s9e/default_formatting_test.php b/tests/text_formatter/s9e/default_formatting_test.php index facffd5df1..b5777a42d4 100644 --- a/tests/text_formatter/s9e/default_formatting_test.php +++ b/tests/text_formatter/s9e/default_formatting_test.php @@ -236,6 +236,14 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case '<a href="http://www.phpbb.com/community/path/to/long/url/file.ext#section" class="postlink">http://www.phpbb.com/community/path/to/ ... xt#section</a>' ), array( + 'http://localhost/ http://localhost/viewforum.php?f=1', + '<a href="http://localhost/" class="postlink">http://localhost/</a> <a href="http://localhost/viewforum.php?f=1" class="postlink">viewforum.php?f=1</a>' + ), + array( + 'http://localhost/viewforum.php?f=1#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', + '<a href="http://localhost/viewforum.php?f=1#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" class="postlink">viewforum.php?f=1#xxxxxxxxxxxxxxxxxxxxx ... xxxxxxxxxx</a>' + ), + array( '[quote="[url=http://example.org]xxx[/url]"]...[/quote]', '<blockquote><div><cite><a href="http://example.org" class="postlink">xxx</a> wrote:</cite>...</div></blockquote>' ), |