aboutsummaryrefslogtreecommitdiffstats
path: root/tests/version/version_helper_remote_test.php
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2017-03-19 21:46:20 +0700
committerMarc Alexander <admin@m-a-styles.de>2019-05-08 21:57:00 +0200
commit42b7782927713c2ca2fb704db6217016347b586e (patch)
tree74d749f282d9087aa658eec91b73b461ffdc5b73 /tests/version/version_helper_remote_test.php
parentcdf3aa27df099eb440fb279ac50d1fe42e7b136c (diff)
downloadforums-42b7782927713c2ca2fb704db6217016347b586e.tar
forums-42b7782927713c2ca2fb704db6217016347b586e.tar.gz
forums-42b7782927713c2ca2fb704db6217016347b586e.tar.bz2
forums-42b7782927713c2ca2fb704db6217016347b586e.tar.xz
forums-42b7782927713c2ca2fb704db6217016347b586e.zip
[ticket/14972] Migrate from deprecated getMock() method to createMock()
PHPBB3-14972
Diffstat (limited to 'tests/version/version_helper_remote_test.php')
-rw-r--r--tests/version/version_helper_remote_test.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/version/version_helper_remote_test.php b/tests/version/version_helper_remote_test.php
index 35c3d92a3a..7b8d71181f 100644
--- a/tests/version/version_helper_remote_test.php
+++ b/tests/version/version_helper_remote_test.php
@@ -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())