function NotificationsTestCase::enableSubscriptionTypes in Notifications 6.4
Same name and namespace in other branches
- 7 tests/notifications_test_case.inc \NotificationsTestCase::enableSubscriptionTypes()
3 calls to NotificationsTestCase::enableSubscriptionTypes()
- NotificationsAnonymousTests::testAnonymousSubscriptions in tests/
notifications_anonymous.test - NotificationsContentTests::testNotificationsContent in tests/
notifications_content.test - Play with creating, retrieving, deleting a pair subscriptions
- NotificationsContentTests::testNotificationsUserPages in tests/
notifications_content.test - Check all user pages before and after enabling permissions
File
- tests/
notifications_test_case.inc, line 52 - Base class for Notifications Tests
Class
- NotificationsTestCase
- @file Base class for Notifications Tests
Code
function enableSubscriptionTypes($enable = TRUE) {
$settings = array_keys(notifications_subscription_types());
variable_set('notifications_content_type', $enable ? $settings : array());
}