mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/16549] Rewrite at() calls
See https://github.com/sebastianbergmann/phpunit/issues/4297 PHPBB3-16549
This commit is contained in:
@@ -356,11 +356,8 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case
|
||||
->will($this->returnValue(true));
|
||||
|
||||
// drop tables
|
||||
$db_tools->expects($this->exactly(2))->method('sql_table_drop');
|
||||
$db_tools->expects($this->at(1))->method('sql_table_drop')
|
||||
->with($this->equalTo('dropped_table_1'));
|
||||
$db_tools->expects($this->at(3))->method('sql_table_drop')
|
||||
->with($this->equalTo('dropped_table_2'));
|
||||
$db_tools->expects($this->exactly(2))->method('sql_table_drop')
|
||||
->withConsecutive([$this->equalTo('dropped_table_1')], [$this->equalTo('dropped_table_2')]);
|
||||
|
||||
$db_tools->perform_schema_changes(array(
|
||||
'drop_tables' => array(
|
||||
@@ -384,11 +381,11 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case
|
||||
->will($this->returnValue(true));
|
||||
|
||||
// drop columns
|
||||
$db_tools->expects($this->exactly(2))->method('sql_column_remove');
|
||||
$db_tools->expects($this->at(1))->method('sql_column_remove')
|
||||
->with($this->equalTo('existing_table'), $this->equalTo('dropped_column_1'));
|
||||
$db_tools->expects($this->at(3))->method('sql_column_remove')
|
||||
->with($this->equalTo('existing_table'), $this->equalTo('dropped_column_2'));
|
||||
$db_tools->expects($this->exactly(2))->method('sql_column_remove')
|
||||
->withConsecutive(
|
||||
[$this->equalTo('existing_table'), $this->equalTo('dropped_column_1')],
|
||||
[$this->equalTo('existing_table'), $this->equalTo('dropped_column_2')]
|
||||
);
|
||||
|
||||
$db_tools->perform_schema_changes(array(
|
||||
'drop_columns' => array(
|
||||
|
Reference in New Issue
Block a user