aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text_formatter
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-12-28 04:19:21 +0100
committerJoshyPHP <s9e.dev@gmail.com>2015-12-28 04:19:21 +0100
commitbc5d976786d60d8d33cf77fccf81ce351b59fcdc (patch)
treef3fd1d4d2a360ab7946f36c37b1186bec934fe88 /tests/text_formatter
parentbcd5d8b5126e57e8c4c93a0d0c1be5e25f0185ff (diff)
downloadforums-bc5d976786d60d8d33cf77fccf81ce351b59fcdc.tar
forums-bc5d976786d60d8d33cf77fccf81ce351b59fcdc.tar.gz
forums-bc5d976786d60d8d33cf77fccf81ce351b59fcdc.tar.bz2
forums-bc5d976786d60d8d33cf77fccf81ce351b59fcdc.tar.xz
forums-bc5d976786d60d8d33cf77fccf81ce351b59fcdc.zip
[ticket/14323] Added should_shorten()
Explicitly tests a tag's markup to determine whether a link should be shortened PHPBB3-14323
Diffstat (limited to 'tests/text_formatter')
-rw-r--r--tests/text_formatter/s9e/default_formatting_test.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/text_formatter/s9e/default_formatting_test.php b/tests/text_formatter/s9e/default_formatting_test.php
index fc6b0a65fa..1f7df15434 100644
--- a/tests/text_formatter/s9e/default_formatting_test.php
+++ b/tests/text_formatter/s9e/default_formatting_test.php
@@ -248,6 +248,10 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
'<a href="http://example.org/0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0" class="postlink">http://example.org/0xxxxxxxxxxxxxxxxxxx ... xxxxxxxxx0</a>'
),
array(
+ '[URL]http://example.org/0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0[/url]',
+ '<a href="http://example.org/0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0" class="postlink">http://example.org/0xxxxxxxxxxxxxxxxxxx ... xxxxxxxxx0</a>'
+ ),
+ array(
'[url=http://example.org/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[/url]',
'<a href="http://example.org/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" class="postlink">xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</a>'
),