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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user