You are here

function NotificationsContentTests::enableSubscriptionTypes in Notifications 6

Same name and namespace in other branches
  1. 6.2 tests/notifications_content.test \NotificationsContentTests::enableSubscriptionTypes()
  2. 6.3 tests/notifications_content.test \NotificationsContentTests::enableSubscriptionTypes()
2 calls to NotificationsContentTests::enableSubscriptionTypes()
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_content.test, line 33

Class

NotificationsContentTests
Class for testing notifications module. Tests basic API functions

Code

function enableSubscriptionTypes($enable = TRUE) {
  $settings = array_keys(notifications_subscription_types());
  variable_set('notifications_content_type', $enable ? $settings : array());
}