mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11469] Do not repeat markTestSkipped() message.
PHPBB3-11469
This commit is contained in:
parent
6f946e2188
commit
a04fe625a8
1 changed files with 11 additions and 12 deletions
|
@ -43,10 +43,7 @@ class phpbb_dbal_sql_insert_buffer_test extends phpbb_database_test_case
|
||||||
|
|
||||||
public function test_multi_insert_enabled_insert_and_flush()
|
public function test_multi_insert_enabled_insert_and_flush()
|
||||||
{
|
{
|
||||||
if (!$this->db->multi_insert)
|
$this->check_multi_insert_support();
|
||||||
{
|
|
||||||
$this->markTestSkipped('Database does not support multi_insert');
|
|
||||||
}
|
|
||||||
|
|
||||||
// This call can be buffered
|
// This call can be buffered
|
||||||
$this->assertFalse($this->buffer->insert($this->get_row(1)));
|
$this->assertFalse($this->buffer->insert($this->get_row(1)));
|
||||||
|
@ -73,10 +70,7 @@ class phpbb_dbal_sql_insert_buffer_test extends phpbb_database_test_case
|
||||||
|
|
||||||
public function test_multi_insert_enabled_insert_with_flush()
|
public function test_multi_insert_enabled_insert_with_flush()
|
||||||
{
|
{
|
||||||
if (!$this->db->multi_insert)
|
$this->check_multi_insert_support();
|
||||||
{
|
|
||||||
$this->markTestSkipped('Database does not support multi_insert');
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->assertFalse($this->buffer->insert($this->get_row(1)));
|
$this->assertFalse($this->buffer->insert($this->get_row(1)));
|
||||||
|
|
||||||
|
@ -97,10 +91,7 @@ class phpbb_dbal_sql_insert_buffer_test extends phpbb_database_test_case
|
||||||
|
|
||||||
public function test_multi_insert_enabled_insert_all_and_flush()
|
public function test_multi_insert_enabled_insert_all_and_flush()
|
||||||
{
|
{
|
||||||
if (!$this->db->multi_insert)
|
$this->check_multi_insert_support();
|
||||||
{
|
|
||||||
$this->markTestSkipped('Database does not support multi_insert');
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->assertTrue($this->buffer->insert_all($this->get_rows(3)));
|
$this->assertTrue($this->buffer->insert_all($this->get_rows(3)));
|
||||||
|
|
||||||
|
@ -121,6 +112,14 @@ class phpbb_dbal_sql_insert_buffer_test extends phpbb_database_test_case
|
||||||
$this->db->sql_freeresult($result);
|
$this->db->sql_freeresult($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function check_multi_insert_support()
|
||||||
|
{
|
||||||
|
if (!$this->db->multi_insert)
|
||||||
|
{
|
||||||
|
$this->markTestSkipped('Database does not support multi_insert');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected function get_row($rownum)
|
protected function get_row($rownum)
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
|
|
Loading…
Add table
Reference in a new issue