You are here

protected function MailchimpListsBasicTestCase::randomEmail in Mailchimp 7.2

Helper function to generate a random email address.

Return value

string approximate email format

1 call to MailchimpListsBasicTestCase::randomEmail()
MailchimpListsBasicTestCase::subscribeUser in modules/mailchimp_lists/tests/mailchimp_lists.test
Subscribes a given number of users to each test list.

File

modules/mailchimp_lists/tests/mailchimp_lists.test, line 405
Test class and methods for the Mailchimp Lists module.

Class

MailchimpListsBasicTestCase
@file Test class and methods for the Mailchimp Lists module.

Code

protected function randomEmail() {
  return $this
    ->randomName() . "@" . $this
    ->randomName() . ".net";
}