aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-03-27 23:21:29 +0100
committerAndreas Fischer <bantu@phpbb.com>2013-03-28 00:22:07 +0100
commita534497d82cb9febaa18ee6c858ef68217bc2d14 (patch)
tree550b075a2d89884137e56948f66c6ded8c31fddd /tests
parentedd4987030ff301e22d76ae8bf5073c3595a8b8c (diff)
downloadforums-a534497d82cb9febaa18ee6c858ef68217bc2d14.tar
forums-a534497d82cb9febaa18ee6c858ef68217bc2d14.tar.gz
forums-a534497d82cb9febaa18ee6c858ef68217bc2d14.tar.bz2
forums-a534497d82cb9febaa18ee6c858ef68217bc2d14.tar.xz
forums-a534497d82cb9febaa18ee6c858ef68217bc2d14.zip
[ticket/11469] Move protected method to end of test file.
PHPBB3-11469
Diffstat (limited to 'tests')
-rw-r--r--tests/dbal/sql_insert_buffer_test.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/dbal/sql_insert_buffer_test.php b/tests/dbal/sql_insert_buffer_test.php
index fd92ca9bba..0cf476b14a 100644
--- a/tests/dbal/sql_insert_buffer_test.php
+++ b/tests/dbal/sql_insert_buffer_test.php
@@ -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);
+ }
}