aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text_formatter/s9e
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-06-16 08:16:56 +0200
committerJoshyPHP <s9e.dev@gmail.com>2015-06-25 03:11:55 +0200
commitf02cc27014c27acaf44b27066959426db27b3493 (patch)
treebf8093cc0a8fe6a113719fa1eeaf27484e3da79f /tests/text_formatter/s9e
parent8747c7a2c17e2f5408f528f5213a3e056aefd54e (diff)
downloadforums-f02cc27014c27acaf44b27066959426db27b3493.tar
forums-f02cc27014c27acaf44b27066959426db27b3493.tar.gz
forums-f02cc27014c27acaf44b27066959426db27b3493.tar.bz2
forums-f02cc27014c27acaf44b27066959426db27b3493.tar.xz
forums-f02cc27014c27acaf44b27066959426db27b3493.zip
[ticket/10620] Implemented quote improvements
PHPBB3-10620
Diffstat (limited to 'tests/text_formatter/s9e')
-rw-r--r--tests/text_formatter/s9e/default_formatting_test.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/text_formatter/s9e/default_formatting_test.php b/tests/text_formatter/s9e/default_formatting_test.php
index 67921d5b1e..3f8e375ad1 100644
--- a/tests/text_formatter/s9e/default_formatting_test.php
+++ b/tests/text_formatter/s9e/default_formatting_test.php
@@ -225,6 +225,28 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
"[quote]\nThis is a long quote that is definitely going to exceed 80 characters\n[/quote]\n\nFollowed by a reply",
"<blockquote class=\"uncited\"><div>\nThis is a long quote that is definitely going to exceed 80 characters\n</div></blockquote>\n\nFollowed by a reply"
),
+ array(
+ '[quote="Username" post_id="123"]...[/quote]',
+ '<blockquote><div><cite>Username wrote: <a href="phpBB/viewtopic.php?p=123#p123" data-post-id="123" onclick="if(document.getElementById(hash.substr(1)))href=hash">↑</a></cite>...</div></blockquote>'
+ ),
+ array(
+ // Users are not allowed to submit their own URL for the post
+ '[quote="Username" post_url="http://fake.example.org"]...[/quote]',
+ '<blockquote><div><cite>Username wrote:</cite>...</div></blockquote>'
+ ),
+ array(
+ '[quote="Username" time="58705871"]...[/quote]',
+ '<blockquote><div><cite>1971-11-11 11:11:11 Username wrote:</cite>...</div></blockquote>'
+ ),
+ array(
+ '[quote="Username" user_id="123"]...[/quote]',
+ '<blockquote><div><cite><a href="phpBB/memberlist.php?mode=viewprofile&amp;u=123">Username</a> wrote:</cite>...</div></blockquote>'
+ ),
+ array(
+ // Users are not allowed to submit their own URL for the profile
+ '[quote="Username" profile_url="http://fake.example.org"]...[/quote]',
+ '<blockquote><div><cite>Username wrote:</cite>...</div></blockquote>'
+ ),
);
}
}