You are here

function NotificationsAnonymousTests::anonymousCreateSubscription in Notifications 7

Same name and namespace in other branches
  1. 6.4 tests/notifications_anonymous.test \NotificationsAnonymousTests::anonymousCreateSubscription()
1 call to NotificationsAnonymousTests::anonymousCreateSubscription()
NotificationsAnonymousTests::testAnonymousSubscriptions in tests/notifications_anonymous.test

File

tests/notifications_anonymous.test, line 64

Class

NotificationsAnonymousTests

Code

function anonymousCreateSubscription($mail, $type, $fields, $messages = array()) {
  $anonymous = drupal_anonymous_user();
  $post["destination_address[mail]"] = $mail;
  return $this
    ->contentCreateSubscription($anonymous, $type, $fields, $messages, $post);
}