aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bbcode
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-12-14 13:00:14 +0100
committerJoas Schilling <nickvergessen@gmx.de>2012-12-14 13:00:14 +0100
commitdeceeb737335b0724c9a15c1f7332ec6deddc3f3 (patch)
tree98d4fe5a17da153f49bf57864bdcb85727996811 /tests/bbcode
parentade9f831aa151de428c4d2b33fce48f9733db336 (diff)
downloadforums-deceeb737335b0724c9a15c1f7332ec6deddc3f3.tar
forums-deceeb737335b0724c9a15c1f7332ec6deddc3f3.tar.gz
forums-deceeb737335b0724c9a15c1f7332ec6deddc3f3.tar.bz2
forums-deceeb737335b0724c9a15c1f7332ec6deddc3f3.tar.xz
forums-deceeb737335b0724c9a15c1f7332ec6deddc3f3.zip
[ticket/11250] Add some more tests for quotes
PHPBB3-11250
Diffstat (limited to 'tests/bbcode')
-rw-r--r--tests/bbcode/parser_test.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/bbcode/parser_test.php b/tests/bbcode/parser_test.php
index 410eeabe92..f700177498 100644
--- a/tests/bbcode/parser_test.php
+++ b/tests/bbcode/parser_test.php
@@ -163,6 +163,32 @@ class phpbb_bbcode_parser_test extends PHPUnit_Framework_TestCase
'[quote="a"]a[/quote][quote="a]a[/quote]',
'[quote="a":]a[/quote:][quote="a]a[/quote]',
),
+
+ array(
+ 'Allow textual BBcodes in usernames',
+ '[quote="[i]test[/i]"]test[/quote]',
+ '[quote="[i:]test[/i:]":]test[/quote:]',
+ ),
+ array(
+ 'Allow links BBcodes in usernames',
+ '[quote="[url=http://www.phpbb.com/]test[/url]"]test[/quote]',
+ '[quote="[url=http://www.phpbb.com/:]test[/url:]":]test[/quote:]',
+ ),
+ array(
+ 'Disallow img BBcodes in usernames - Username displayed as [img]http://www.phpbb.com/[/img]',
+ '[quote="[img]http://www.phpbb.com/[/img]"]test[/quote]',
+ '[quote="[img]http://www.phpbb.com/[/img]":]test[/quote:]',
+ ),
+ array(
+ 'Disallow flash BBcodes in usernames - Username displayed as [flash]http://www.phpbb.com/[/flash]',
+ '[quote="[flash]http://www.phpbb.com/[/flash]"]test[/quote]',
+ '[quote="[flash]http://www.phpbb.com/[/flash]":]test[/quote:]',
+ ),
+ array(
+ 'parsed - Username displayed as [quote]test[/quote]',
+ '[quote="[quote]test[/quote]"]test[/quote]',
+ '[quote="[quote]test[/quote]":]test[/quote:]',
+ ),
);
}