mirror of
https://github.com/phpbb/phpbb.git
synced 2025-09-01 04:22:11 +02:00
[ticket/14972] Migrate from deprecated getMock() method to createMock()
PHPBB3-14972
This commit is contained in:
@@ -299,7 +299,7 @@ class phpbb_content_visibility_delete_post_test extends phpbb_database_test_case
|
||||
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
|
||||
|
||||
// Create auth mock
|
||||
$auth = $this->getMock('\phpbb\auth\auth');
|
||||
$auth = $this->createMock('\phpbb\auth\auth');
|
||||
$auth->expects($this->any())
|
||||
->method('acl_get')
|
||||
->with($this->stringContains('_'), $this->anything())
|
||||
|
@@ -129,7 +129,7 @@ class phpbb_content_visibility_get_forums_visibility_sql_test extends phpbb_data
|
||||
$db = $this->new_dbal();
|
||||
|
||||
// Create auth mock
|
||||
$auth = $this->getMock('\phpbb\auth\auth');
|
||||
$auth = $this->createMock('\phpbb\auth\auth');
|
||||
$auth->expects($this->any())
|
||||
->method('acl_getf')
|
||||
->with($this->stringContains('_'), $this->anything())
|
||||
|
@@ -129,7 +129,7 @@ class phpbb_content_visibility_get_global_visibility_sql_test extends phpbb_data
|
||||
$db = $this->new_dbal();
|
||||
|
||||
// Create auth mock
|
||||
$auth = $this->getMock('\phpbb\auth\auth');
|
||||
$auth = $this->createMock('\phpbb\auth\auth');
|
||||
$auth->expects($this->any())
|
||||
->method('acl_getf')
|
||||
->with($this->stringContains('_'), $this->anything())
|
||||
|
@@ -76,7 +76,7 @@ class phpbb_content_visibility_get_visibility_sql_test extends phpbb_database_te
|
||||
$db = $this->new_dbal();
|
||||
|
||||
// Create auth mock
|
||||
$auth = $this->getMock('\phpbb\auth\auth');
|
||||
$auth = $this->createMock('\phpbb\auth\auth');
|
||||
$auth->expects($this->any())
|
||||
->method('acl_get')
|
||||
->with($this->stringContains('_'), $this->anything())
|
||||
|
@@ -120,7 +120,7 @@ class phpbb_content_visibility_set_post_visibility_test extends phpbb_database_t
|
||||
|
||||
$cache = new phpbb_mock_cache;
|
||||
$db = $this->new_dbal();
|
||||
$auth = $this->getMock('\phpbb\auth\auth');
|
||||
$auth = $this->createMock('\phpbb\auth\auth');
|
||||
$lang_loader = new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx);
|
||||
$lang = new \phpbb\language\language($lang_loader);
|
||||
$user = new \phpbb\user($lang, '\phpbb\datetime');
|
||||
@@ -173,7 +173,7 @@ class phpbb_content_visibility_set_post_visibility_test extends phpbb_database_t
|
||||
|
||||
$cache = new phpbb_mock_cache;
|
||||
$db = $this->new_dbal();
|
||||
$auth = $this->getMock('\phpbb\auth\auth');
|
||||
$auth = $this->createMock('\phpbb\auth\auth');
|
||||
$lang_loader = new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx);
|
||||
$lang = new \phpbb\language\language($lang_loader);
|
||||
$user = new \phpbb\user($lang, '\phpbb\datetime');
|
||||
|
@@ -84,7 +84,7 @@ class phpbb_content_visibility_set_topic_visibility_test extends phpbb_database_
|
||||
|
||||
$cache = new phpbb_mock_cache;
|
||||
$db = $this->new_dbal();
|
||||
$auth = $this->getMock('\phpbb\auth\auth');
|
||||
$auth = $this->createMock('\phpbb\auth\auth');
|
||||
$lang_loader = new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx);
|
||||
$lang = new \phpbb\language\language($lang_loader);
|
||||
$user = new \phpbb\user($lang, '\phpbb\datetime');
|
||||
|
Reference in New Issue
Block a user