diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2015-07-06 01:57:54 +0200 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-07-06 23:45:38 +0200 |
commit | cf4cdcda586a2371aa92ae452951f9660737ae09 (patch) | |
tree | 15cab3410c1a38bf7520f9dc7745d8c4056f16b9 /tests/text_reparser | |
parent | 7ccb6389124c5e990abaa917a6684fc3f4d072db (diff) | |
download | forums-cf4cdcda586a2371aa92ae452951f9660737ae09.tar forums-cf4cdcda586a2371aa92ae452951f9660737ae09.tar.gz forums-cf4cdcda586a2371aa92ae452951f9660737ae09.tar.bz2 forums-cf4cdcda586a2371aa92ae452951f9660737ae09.tar.xz forums-cf4cdcda586a2371aa92ae452951f9660737ae09.zip |
[ticket/13987] Replaced optional parameter with explicit API
Added disable_save() and enable_save() to toggle a dry run
PHPBB3-13987
Diffstat (limited to 'tests/text_reparser')
-rw-r--r-- | tests/text_reparser/plugins/contact_admin_info_test.php | 4 | ||||
-rw-r--r-- | tests/text_reparser/plugins/poll_option_test.php | 4 | ||||
-rw-r--r-- | tests/text_reparser/plugins/test_row_based_plugin.php | 3 |
3 files changed, 8 insertions, 3 deletions
diff --git a/tests/text_reparser/plugins/contact_admin_info_test.php b/tests/text_reparser/plugins/contact_admin_info_test.php index e3df1ee2b8..1dc03834b6 100644 --- a/tests/text_reparser/plugins/contact_admin_info_test.php +++ b/tests/text_reparser/plugins/contact_admin_info_test.php @@ -62,7 +62,8 @@ class phpbb_textreparser_contact_admin_info_test extends phpbb_database_test_cas { $old_rows = $this->get_rows(); $reparser = $this->get_reparser(); - $reparser->reparse_range(1, 1, true); + $reparser->disable_save(); + $reparser->reparse_range(1, 1); $new_rows = $this->get_rows(); $this->assertEquals($old_rows, $new_rows); } @@ -70,6 +71,7 @@ class phpbb_textreparser_contact_admin_info_test extends phpbb_database_test_cas public function test_reparse() { $reparser = $this->get_reparser(); + $reparser->enable_save(); $reparser->reparse_range(1, 1); $expected = array( array( diff --git a/tests/text_reparser/plugins/poll_option_test.php b/tests/text_reparser/plugins/poll_option_test.php index cc6163a81b..dfa3a030ed 100644 --- a/tests/text_reparser/plugins/poll_option_test.php +++ b/tests/text_reparser/plugins/poll_option_test.php @@ -62,7 +62,8 @@ class phpbb_textreparser_poll_option_test extends phpbb_database_test_case { $old_rows = $this->get_rows(); $reparser = $this->get_reparser(); - $reparser->reparse_range(1, 1, true); + $reparser->disable_save(); + $reparser->reparse_range(1, 1); $new_rows = $this->get_rows(); $this->assertEquals($old_rows, $new_rows); } @@ -70,6 +71,7 @@ class phpbb_textreparser_poll_option_test extends phpbb_database_test_case public function testReparse() { $reparser = $this->get_reparser(); + $reparser->enable_save(); $reparser->reparse_range(2, 13); $expected = array( array( diff --git a/tests/text_reparser/plugins/test_row_based_plugin.php b/tests/text_reparser/plugins/test_row_based_plugin.php index 9f9ecc609a..bbae44c8e0 100644 --- a/tests/text_reparser/plugins/test_row_based_plugin.php +++ b/tests/text_reparser/plugins/test_row_based_plugin.php @@ -57,7 +57,8 @@ abstract class phpbb_textreparser_test_row_based_plugin extends phpbb_database_t { $old_rows = $this->get_rows(array(1)); $reparser = $this->get_reparser(); - $reparser->reparse_range(1, 1, true); + $reparser->disable_save(); + $reparser->reparse_range(1, 1); $new_rows = $this->get_rows(array(1)); $this->assertEquals($old_rows, $new_rows); } |