1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-15 05:04:09 +02:00

[ticket/17535] Update PHPUnit to v.10

PHPBB-17535
This commit is contained in:
rxu
2025-07-14 17:02:21 +07:00
parent 30ee379576
commit d7db296eab
56 changed files with 529 additions and 574 deletions

View File

@@ -33,12 +33,12 @@ class phpbb_profilefield_type_bool_test extends phpbb_test_case
->will($this->returnCallback(array($this, 'return_callback_implode')));
$lang = $this->getMockBuilder('\phpbb\profilefields\lang_helper')
->setMethods(array('get_options_lang', 'is_set', 'get'))
->onlyMethods(array('load_option_lang', 'is_set', 'get'))
->setConstructorArgs(array($db, LANG_TABLE))
->getMock();
$lang->expects($this->any())
->method('get_options_lang');
->method('load_option_lang');
$lang->expects($this->any())
->method('is_set')

View File

@@ -35,12 +35,12 @@ class phpbb_profilefield_type_dropdown_test extends phpbb_test_case
$template = $this->createMock('\phpbb\template\template');
$lang = $this->getMockBuilder('\phpbb\profilefields\lang_helper')
->setMethods(array('get_options_lang', 'is_set', 'get'))
->onlyMethods(array('load_option_lang', 'is_set', 'get'))
->setConstructorArgs(array($db, LANG_TABLE))
->getMock();
$lang->expects($this->any())
->method('get_options_lang');
->method('load_option_lang');
$lang->expects($this->any())
->method('is_set')