mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-20 23:41:29 +02:00
[ticket/14972] Migrate from deprecated getMock() method to createMock()
PHPBB3-14972
This commit is contained in:
@@ -23,8 +23,9 @@ class phpbb_installer_config_test extends phpbb_test_case
|
||||
public function setUp()
|
||||
{
|
||||
$phpbb_root_path = __DIR__ . './../../phpBB/';
|
||||
$filesystem = $this->getMock('\phpbb\filesystem\filesystem');
|
||||
$filesystem = $this->createMock('\phpbb\filesystem\filesystem');
|
||||
$php_ini = $this->getMockBuilder('\bantu\IniGetWrapper\IniGetWrapper')
|
||||
->setMethods(array('getInt', 'getBytes'))
|
||||
->getMock();
|
||||
$php_ini->method('getInt')
|
||||
->willReturn(-1);
|
||||
|
Reference in New Issue
Block a user