diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2015-07-06 19:17:40 +0200 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-07-06 19:17:40 +0200 |
commit | a44711e57478c6f9d1fa38582deae72cad240560 (patch) | |
tree | ec7b7b5876a606bc5931026d55099fba8abe13ec /tests/text_reparser/plugins/poll_option_test.php | |
parent | f81a2bc7c56cfcb57feaed293be87bbe640dfa5f (diff) | |
download | forums-a44711e57478c6f9d1fa38582deae72cad240560.tar forums-a44711e57478c6f9d1fa38582deae72cad240560.tar.gz forums-a44711e57478c6f9d1fa38582deae72cad240560.tar.bz2 forums-a44711e57478c6f9d1fa38582deae72cad240560.tar.xz forums-a44711e57478c6f9d1fa38582deae72cad240560.zip |
[ticket/13990] Reparse markup inside of forum rules/description
PHPBB3-13990
Diffstat (limited to 'tests/text_reparser/plugins/poll_option_test.php')
-rw-r--r-- | tests/text_reparser/plugins/poll_option_test.php | 17 |
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]', |