1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-01 20:19:13 +02:00

[ticket/11250] Add some more tests for quotes

PHPBB3-11250
This commit is contained in:
Joas Schilling 2012-12-14 13:00:14 +01:00
parent ade9f831aa
commit deceeb7373

View File

@ -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:]',
),
);
}