1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-24 10:31:57 +02:00

[ticket/16741] Fix tests

PHPBB3-16741
This commit is contained in:
Máté Bartus
2021-12-05 11:25:56 +01:00
parent a0584b8677
commit e93c914da3
2 changed files with 23 additions and 16 deletions

View File

@@ -360,7 +360,7 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case
public function test_perform_schema_changes_drop_tables()
{
$db_tools = $this->getMockBuilder('\phpbb\db\tools\doctrine')
->onlyMethods(array('sql_table_exists', '_schema_drop_table'))
->onlyMethods(array('sql_table_exists', 'schema_drop_table'))
->setConstructorArgs(array($this->doctrine_db))
->getMock();
@@ -369,7 +369,7 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case
->will($this->returnValue(true));
// drop tables
$db_tools->expects($this->exactly(2))->method('_schema_drop_table')
$db_tools->expects($this->exactly(2))->method('schema_drop_table')
->withConsecutive(
[$this->isInstanceOf(Schema::class), 'dropped_table_1', true],
[$this->isInstanceOf(Schema::class), 'dropped_table_2', true]