mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11469] Move protected method to end of test file.
PHPBB3-11469
This commit is contained in:
parent
edd4987030
commit
a534497d82
1 changed files with 9 additions and 9 deletions
|
@ -14,15 +14,6 @@ class phpbb_dbal_sql_insert_buffer_test extends phpbb_database_test_case
|
|||
return $this->createXMLDataSet(dirname(__FILE__).'/fixtures/config.xml');
|
||||
}
|
||||
|
||||
protected function assert_config_count($db, $num_configs)
|
||||
{
|
||||
$sql = 'SELECT COUNT(*) AS num_configs
|
||||
FROM phpbb_config';
|
||||
$result = $db->sql_query($sql);
|
||||
$this->assertEquals($num_configs, $db->sql_fetchfield('num_configs'));
|
||||
$db->sql_freeresult($result);
|
||||
}
|
||||
|
||||
public function test_multi_insert_disabled_insert_and_flush()
|
||||
{
|
||||
$db = $this->new_dbal();
|
||||
|
@ -197,4 +188,13 @@ class phpbb_dbal_sql_insert_buffer_test extends phpbb_database_test_case
|
|||
|
||||
$this->assert_config_count($db, 5);
|
||||
}
|
||||
|
||||
protected function assert_config_count($db, $num_configs)
|
||||
{
|
||||
$sql = 'SELECT COUNT(*) AS num_configs
|
||||
FROM phpbb_config';
|
||||
$result = $db->sql_query($sql);
|
||||
$this->assertEquals($num_configs, $db->sql_fetchfield('num_configs'));
|
||||
$db->sql_freeresult($result);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue