diff options
| author | JoshyPHP <s9e.dev@gmail.com> | 2015-05-02 08:51:56 +0200 |
|---|---|---|
| committer | JoshyPHP <s9e.dev@gmail.com> | 2015-05-30 17:26:00 +0200 |
| commit | 70cd911281056ecb4eefc23e678126e1747debc8 (patch) | |
| tree | 33bcf76ca6f8653c94edcd0d0f7f567b372c79f9 /tests/text_reparser/test_row_based_plugin.php | |
| parent | 9bf0f794b5876b10491c91548f1a92bc0dff7400 (diff) | |
| download | forums-70cd911281056ecb4eefc23e678126e1747debc8.tar forums-70cd911281056ecb4eefc23e678126e1747debc8.tar.gz forums-70cd911281056ecb4eefc23e678126e1747debc8.tar.bz2 forums-70cd911281056ecb4eefc23e678126e1747debc8.tar.xz forums-70cd911281056ecb4eefc23e678126e1747debc8.zip | |
[ticket/13803] Added tests
PHPBB3-13803
Diffstat (limited to 'tests/text_reparser/test_row_based_plugin.php')
| -rw-r--r-- | tests/text_reparser/test_row_based_plugin.php | 40 |
1 files changed, 34 insertions, 6 deletions
diff --git a/tests/text_reparser/test_row_based_plugin.php b/tests/text_reparser/test_row_based_plugin.php index 7dd90f21d0..405341e2fc 100644 --- a/tests/text_reparser/test_row_based_plugin.php +++ b/tests/text_reparser/test_row_based_plugin.php @@ -62,31 +62,59 @@ abstract class phpbb_textreparser_test_row_based_plugin extends phpbb_database_t 5, array( array( - 'id' => 1, + 'id' => '1', 'text' => 'This row should be [b]ignored[/b]', ), array( - 'id' => 2, + 'id' => '2', 'text' => '<t>[b]Not bold[/b] :) http://example.org</t>', ), array( - 'id' => 3, + 'id' => '3', 'text' => '<r><B><s>[b]</s>Bold<e>[/b]</e></B> :) http://example.org</r>', ), array( - 'id' => 4, + 'id' => '4', 'text' => '<r>[b]Not bold[/b] <E>:)</E> http://example.org</r>', ), array( - 'id' => 5, + 'id' => '5', 'text' => '<r>[b]Not bold[/b] :) <URL url="http://example.org">http://example.org</URL></r>', ), array( - 'id' => 1000, + 'id' => '1000', 'text' => 'This row should be [b]ignored[/b]', ), ) ), + array( + 6, + 7, + array( + array( + 'id' => '6', + 'text' => '<r><FLASH height="345" url="http://example.org/flash.swf" width="123"><s>[flash=123,345]</s>http://example.org/flash.swf<e>[/flash]</e></FLASH></r>', + ), + array( + 'id' => '7', + 'text' => '<t>[flash=123,345]http://example.org/flash.swf[/flash]</t>', + ), + ) + ), + array( + 8, + 9, + array( + array( + 'id' => '8', + 'text' => '<r><IMG src="http://example.org/img.png"><s>[img]</s>http://example.org/img.png<e>[/img]</e></IMG></r>', + ), + array( + 'id' => '9', + 'text' => '<t>[img]http://example.org/img.png[/img]</t>', + ), + ) + ), ); } } |
