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/log/function_add_log_test.php | |
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/log/function_add_log_test.php')
-rw-r--r-- | tests/log/function_add_log_test.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/log/function_add_log_test.php b/tests/log/function_add_log_test.php index 3b5537fc13..c3f1a0beba 100644 --- a/tests/log/function_add_log_test.php +++ b/tests/log/function_add_log_test.php @@ -159,11 +159,11 @@ class phpbb_log_function_add_log_test extends phpbb_database_test_case $db = $this->new_dbal(); $cache = new phpbb_mock_cache; $phpbb_dispatcher = new phpbb_mock_event_dispatcher(); - $user = $this->getMock('\phpbb\user', array(), array( + $user = $this->createMock('\phpbb\user', array(), array( new \phpbb\language\language(new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx)), '\phpbb\datetime' )); - $auth = $this->getMock('\phpbb\auth\auth'); + $auth = $this->createMock('\phpbb\auth\auth'); $phpbb_log = new \phpbb\log\log($db, $user, $auth, $phpbb_dispatcher, $phpbb_root_path, 'adm/', $phpEx, LOG_TABLE); |