You are here

function NotificationsAnonymousTests::anonymousCreatePermissions in Notifications 7

Same name and namespace in other branches
  1. 6.4 tests/notifications_anonymous.test \NotificationsAnonymousTests::anonymousCreatePermissions()
1 call to NotificationsAnonymousTests::anonymousCreatePermissions()
NotificationsAnonymousTests::setUp in tests/notifications_anonymous.test
Set up some required modules

File

tests/notifications_anonymous.test, line 73

Class

NotificationsAnonymousTests

Code

function anonymousCreatePermissions($perms) {
  $data = array(
    'rid' => 1,
    'tid' => 0,
    'perm' => implode(', ', $perms),
  );
  return drupal_write_record('permission', $data);
}