aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text_reparser/plugins/poll_option_test.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/text_reparser/plugins/poll_option_test.php')
-rw-r--r--tests/text_reparser/plugins/poll_option_test.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/text_reparser/plugins/poll_option_test.php b/tests/text_reparser/plugins/poll_option_test.php
index e043858597..acabda2146 100644
--- a/tests/text_reparser/plugins/poll_option_test.php
+++ b/tests/text_reparser/plugins/poll_option_test.php
@@ -49,7 +49,7 @@ class phpbb_textreparser_poll_option_test extends phpbb_database_test_case
public function testReparse()
{
$reparser = $this->get_reparser();
- $reparser->reparse_range(2, 3);
+ $reparser->reparse_range(2, 13);
$sql = 'SELECT topic_id, poll_option_id, poll_option_text
FROM ' . POLL_OPTIONS_TABLE . '
@@ -85,6 +85,21 @@ class phpbb_textreparser_poll_option_test extends phpbb_database_test_case
'poll_option_text' => '<r><URL url="http://example.org">http://example.org</URL></r>',
),
array(
+ 'topic_id' => 11,
+ 'poll_option_id' => 1,
+ 'poll_option_text' => '<r><B><s>[b]</s>Bold<e>[/b]</e></B> :) http://example.org</r>',
+ ),
+ array(
+ 'topic_id' => 12,
+ 'poll_option_id' => 1,
+ 'poll_option_text' => '<r>[b]Not bold[/b] <E>:)</E> http://example.org</r>',
+ ),
+ array(
+ 'topic_id' => 13,
+ 'poll_option_id' => 1,
+ 'poll_option_text' => '<r>[b]Not bold[/b] :) <URL url="http://example.org">http://example.org</URL></r>',
+ ),
+ array(
'topic_id' => 123,
'poll_option_id' => 1,
'poll_option_text' => 'This row should be [b]ignored[/b]',