aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-10-20 21:55:58 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-10-20 21:55:58 -0500
commitbc18e368c36af90b2e998913e827dc7be71f3bd0 (patch)
tree2b748428c74629f2ae2163481b911ad7638e6eba /tests
parent7e6f31b51d51b1ea6416ed15c425acbb669c463d (diff)
downloadforums-bc18e368c36af90b2e998913e827dc7be71f3bd0.tar
forums-bc18e368c36af90b2e998913e827dc7be71f3bd0.tar.gz
forums-bc18e368c36af90b2e998913e827dc7be71f3bd0.tar.bz2
forums-bc18e368c36af90b2e998913e827dc7be71f3bd0.tar.xz
forums-bc18e368c36af90b2e998913e827dc7be71f3bd0.zip
[ticket/11103] Correct the test case
Fix a bug that broke it and make sure to set the needed config/auth settings PHPBB3-11103
Diffstat (limited to 'tests')
-rw-r--r--tests/mock/notifications_auth.php5
-rw-r--r--tests/notification/notification.php9
2 files changed, 11 insertions, 3 deletions
diff --git a/tests/mock/notifications_auth.php b/tests/mock/notifications_auth.php
index d1c1458de7..d960acb81a 100644
--- a/tests/mock/notifications_auth.php
+++ b/tests/mock/notifications_auth.php
@@ -32,4 +32,9 @@ class phpbb_mock_notifications_auth extends phpbb_auth
return $auth_list;
}
+
+ function acl_get($opt, $f = 0)
+ {
+ return true;
+ }
}
diff --git a/tests/notification/notification.php b/tests/notification/notification.php
index 0bb69dc2c5..bb671e62ef 100644
--- a/tests/notification/notification.php
+++ b/tests/notification/notification.php
@@ -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']);