mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-22 16:22:58 +02:00
[ticket/14972] Migrate from deprecated getMock() method to createMock()
PHPBB3-14972
This commit is contained in:
@@ -19,7 +19,7 @@ class phpbb_deactivated_super_global_test extends phpbb_test_case
|
||||
public function test_write_triggers_error()
|
||||
{
|
||||
$this->setExpectedTriggerError(E_USER_ERROR);
|
||||
$obj = new \phpbb\request\deactivated_super_global($this->getMock('\phpbb\request\request_interface'), 'obj', \phpbb\request\request_interface::POST);
|
||||
$obj = new \phpbb\request\deactivated_super_global($this->createMock('\phpbb\request\request_interface'), 'obj', \phpbb\request\request_interface::POST);
|
||||
$obj->offsetSet(0, 0);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user