You are here

function NotificationsContentTests::enableUIPages in Notifications 6

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

Class

NotificationsContentTests
Class for testing notifications module. Tests basic API functions

Code

function enableUIPages($enable = TRUE) {
  $settings = array_keys(notifications_subscription_types());
  variable_set('notifications_ui_types', $enable ? $settings : array());
  variable_set('notifications_ui_user', $enable ? array(
    'page',
    'create',
  ) : array());
}