function NotificationsAnonymousTests::anonymousCreateSubscription in Notifications 6.4
Same name and namespace in other branches
- 7 tests/notifications_anonymous.test \NotificationsAnonymousTests::anonymousCreateSubscription()
1 call to NotificationsAnonymousTests::anonymousCreateSubscription()
File
- tests/
notifications_anonymous.test, line 64
Class
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);
}