aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dbal
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-03-28 00:03:48 +0100
committerAndreas Fischer <bantu@phpbb.com>2013-03-28 00:28:51 +0100
commite022a7e8f602de67472e4ea5b6ecb6280f4054e4 (patch)
treef7f759c6b6ed5416a1781b91d44b60b667896d29 /tests/dbal
parenta04fe625a86c0b1fcc037687afec39c659fbd830 (diff)
downloadforums-e022a7e8f602de67472e4ea5b6ecb6280f4054e4.tar
forums-e022a7e8f602de67472e4ea5b6ecb6280f4054e4.tar.gz
forums-e022a7e8f602de67472e4ea5b6ecb6280f4054e4.tar.bz2
forums-e022a7e8f602de67472e4ea5b6ecb6280f4054e4.tar.xz
forums-e022a7e8f602de67472e4ea5b6ecb6280f4054e4.zip
[ticket/11469] Remove comments. Method names should be good enough now.
PHPBB3-11469
Diffstat (limited to 'tests/dbal')
-rw-r--r--tests/dbal/sql_insert_buffer_test.php27
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/dbal/sql_insert_buffer_test.php b/tests/dbal/sql_insert_buffer_test.php
index 9357278a62..04ef6a3d52 100644
--- a/tests/dbal/sql_insert_buffer_test.php
+++ b/tests/dbal/sql_insert_buffer_test.php
@@ -29,77 +29,50 @@ class phpbb_dbal_sql_insert_buffer_test extends phpbb_database_test_case
public function test_multi_insert_disabled_insert_and_flush()
{
$this->db->multi_insert = false;
-
- // This call can be buffered
$this->assertTrue($this->buffer->insert($this->get_row(1)));
-
$this->assert_config_count(3);
-
- // Manually flush
$this->assertFalse($this->buffer->flush());
-
$this->assert_config_count(3);
}
public function test_multi_insert_enabled_insert_and_flush()
{
$this->check_multi_insert_support();
-
- // This call can be buffered
$this->assertFalse($this->buffer->insert($this->get_row(1)));
-
$this->assert_config_count(2);
-
- // Manually flush
$this->assertTrue($this->buffer->flush());
-
$this->assert_config_count(3);
}
public function test_multi_insert_disabled_insert_with_flush()
{
$this->db->multi_insert = false;
-
$this->assertTrue($this->buffer->insert($this->get_row(1)));
-
- // This call flushes the values
$this->assertTrue($this->buffer->insert($this->get_row(2)));
-
$this->assert_config_count(4);
}
public function test_multi_insert_enabled_insert_with_flush()
{
$this->check_multi_insert_support();
-
$this->assertFalse($this->buffer->insert($this->get_row(1)));
-
- // This call flushes the values
$this->assertTrue($this->buffer->insert($this->get_row(2)));
-
$this->assert_config_count(4);
}
public function test_multi_insert_disabled_insert_all_and_flush()
{
$this->db->multi_insert = false;
-
$this->assertTrue($this->buffer->insert_all($this->get_rows(3)));
-
$this->assert_config_count(5);
}
public function test_multi_insert_enabled_insert_all_and_flush()
{
$this->check_multi_insert_support();
-
$this->assertTrue($this->buffer->insert_all($this->get_rows(3)));
-
$this->assert_config_count(4);
-
- // Manually flush
$this->assertTrue($this->buffer->flush());
-
$this->assert_config_count(5);
}