1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13987] Replaced optional parameter with explicit API

Added disable_save() and enable_save() to toggle a dry run

PHPBB3-13987
This commit is contained in:
JoshyPHP
2015-07-06 01:57:54 +02:00
parent 7ccb638912
commit cf4cdcda58
6 changed files with 49 additions and 18 deletions

View File

@@ -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(