diff options
author | rxu <rxu@mail.ru> | 2017-03-19 21:46:20 +0700 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-05-08 21:57:00 +0200 |
commit | 42b7782927713c2ca2fb704db6217016347b586e (patch) | |
tree | 74d749f282d9087aa658eec91b73b461ffdc5b73 /tests/security | |
parent | cdf3aa27df099eb440fb279ac50d1fe42e7b136c (diff) | |
download | forums-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/security')
-rw-r--r-- | tests/security/hash_test.php | 2 | ||||
-rw-r--r-- | tests/security/redirect_test.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/security/hash_test.php b/tests/security/hash_test.php index 84d4fcf479..113c32bf7f 100644 --- a/tests/security/hash_test.php +++ b/tests/security/hash_test.php @@ -18,7 +18,7 @@ class phpbb_security_hash_test extends phpbb_test_case global $phpbb_container; $config = new \phpbb\config\config(array()); - $phpbb_container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface'); + $phpbb_container = $this->createMock('Symfony\Component\DependencyInjection\ContainerInterface'); $driver_helper = new \phpbb\passwords\driver\helper($config); $passwords_drivers = array( 'passwords.driver.bcrypt_2y' => new \phpbb\passwords\driver\bcrypt_2y($config, $driver_helper), diff --git a/tests/security/redirect_test.php b/tests/security/redirect_test.php index 0177eb4259..0d08eaeac1 100644 --- a/tests/security/redirect_test.php +++ b/tests/security/redirect_test.php @@ -67,7 +67,7 @@ class phpbb_security_redirect_test extends phpbb_security_test_base new phpbb_mock_request() ), new \phpbb\filesystem\filesystem(), - $this->getMock('\phpbb\request\request'), + $this->createMock('\phpbb\request\request'), $this->phpbb_root_path, 'php' ); |