aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auth
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/auth
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/auth')
-rw-r--r--tests/auth/provider_apache_test.php2
-rw-r--r--tests/auth/provider_db_test.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auth/provider_apache_test.php b/tests/auth/provider_apache_test.php
index 7d77d763fb..f30d19ef9d 100644
--- a/tests/auth/provider_apache_test.php
+++ b/tests/auth/provider_apache_test.php
@@ -27,7 +27,7 @@ class phpbb_auth_provider_apache_test extends phpbb_database_test_case
$config = new \phpbb\config\config(array());
$lang_loader = new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx);
$lang = new \phpbb\language\language($lang_loader);
- $this->request = $this->getMock('\phpbb\request\request');
+ $this->request = $this->createMock('\phpbb\request\request');
$this->user = new \phpbb\user($lang, '\phpbb\datetime');
$driver_helper = new \phpbb\passwords\driver\helper($config);
$passwords_drivers = array(
diff --git a/tests/auth/provider_db_test.php b/tests/auth/provider_db_test.php
index 6ff77da564..b7d94ed046 100644
--- a/tests/auth/provider_db_test.php
+++ b/tests/auth/provider_db_test.php
@@ -37,7 +37,7 @@ class phpbb_auth_provider_db_test extends phpbb_database_test_case
));
$lang_loader = new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx);
$lang = new \phpbb\language\language($lang_loader);
- $request = $this->getMock('\phpbb\request\request');
+ $request = $this->createMock('\phpbb\request\request');
$user = new \phpbb\user($lang, '\phpbb\datetime');
$driver_helper = new \phpbb\passwords\driver\helper($config);
$passwords_drivers = array(