mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-18 22:41:28 +02:00
[ticket/14972] Migrate from deprecated getMock() method to createMock()
PHPBB3-14972
This commit is contained in:
@@ -30,7 +30,11 @@ class version_helper_remote_test extends \phpbb_test_case
|
||||
));
|
||||
$container = new \phpbb_mock_container_builder();
|
||||
$db = new \phpbb\db\driver\factory($container);
|
||||
$this->cache = $this->getMock('\phpbb\cache\service', array('get'), array(new \phpbb\cache\driver\dummy(), $config, $db, '../../', 'php'));
|
||||
$this->cache = $this->getMockBuilder('\phpbb\cache\service')
|
||||
->setMethods(array('get'))
|
||||
->setConstructorArgs(array(new \phpbb\cache\driver\dummy(), $config, $db, '../../', 'php'))
|
||||
->getMock();
|
||||
|
||||
$this->cache->expects($this->any())
|
||||
->method('get')
|
||||
->with($this->anything())
|
||||
|
Reference in New Issue
Block a user