mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/11103] Correct the test case
Fix a bug that broke it and make sure to set the needed config/auth settings PHPBB3-11103
This commit is contained in:
@@ -32,4 +32,9 @@ class phpbb_mock_notifications_auth extends phpbb_auth
|
||||
|
||||
return $auth_list;
|
||||
}
|
||||
|
||||
function acl_get($opt, $f = 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@@ -69,7 +69,12 @@ class phpbb_notification_test extends phpbb_database_test_case
|
||||
}
|
||||
|
||||
$db = $this->new_dbal();
|
||||
$config = new phpbb_config(array());
|
||||
$config = new phpbb_config(array(
|
||||
'allow_privmsg' => true,
|
||||
'allow_bookmarks' => true,
|
||||
'allow_topic_notify' => true,
|
||||
'allow_forum_notify' => true,
|
||||
));
|
||||
$user = new phpbb_mock_user();
|
||||
|
||||
$this->notifications = new phpbb_notification_manager(
|
||||
@@ -105,8 +110,6 @@ class phpbb_notification_test extends phpbb_database_test_case
|
||||
$this->assertArrayHasKey('phpbb_notification_type_quote', $subscription_types['NOTIFICATION_GROUP_POSTING']);
|
||||
$this->assertArrayHasKey('phpbb_notification_type_topic', $subscription_types['NOTIFICATION_GROUP_POSTING']);
|
||||
|
||||
$this->assertArrayHasKey('moderation_queue', $subscription_types['NOTIFICATION_GROUP_POSTING']);
|
||||
|
||||
$this->assertArrayHasKey('phpbb_notification_type_pm', $subscription_types['NOTIFICATION_GROUP_MISCELLANEOUS']);
|
||||
$this->assertArrayHasKey('phpbb_ext_test_notification_type_test', $subscription_types['NOTIFICATION_GROUP_MISCELLANEOUS']);
|
||||
|
||||
|
Reference in New Issue
Block a user