public function MailchimpListsTestCase::testGetMemberInfo in Mailchimp 7.4
Same name and namespace in other branches
- 7.5 modules/mailchimp_lists/tests/mailchimp_lists.test \MailchimpListsTestCase::testGetMemberInfo()
- 7.3 modules/mailchimp_lists/tests/mailchimp_lists.test \MailchimpListsTestCase::testGetMemberInfo()
Tests retrieval of member info for a list and email address.
File
- modules/
mailchimp_lists/ tests/ mailchimp_lists.test, line 110 - Test class and methods for the Mailchimp Lists module.
Class
- MailchimpListsTestCase
- @file Test class and methods for the Mailchimp Lists module.
Code
public function testGetMemberInfo() {
$list_id = '57afe96172';
$email = 'test@example.org';
$member_info = mailchimp_get_memberinfo($list_id, $email);
$this
->assertEqual($member_info->id, md5($email));
$this
->assertEqual($member_info->email_address, $email);
}