aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text_reparser/plugins/poll_option_test.php
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-07-06 01:57:54 +0200
committerJoshyPHP <s9e.dev@gmail.com>2015-07-06 23:45:38 +0200
commitcf4cdcda586a2371aa92ae452951f9660737ae09 (patch)
tree15cab3410c1a38bf7520f9dc7745d8c4056f16b9 /tests/text_reparser/plugins/poll_option_test.php
parent7ccb6389124c5e990abaa917a6684fc3f4d072db (diff)
downloadforums-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/plugins/poll_option_test.php')
-rw-r--r--tests/text_reparser/plugins/poll_option_test.php4
1 files changed, 3 insertions, 1 deletions
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(