public function MailchimpListsSubscriptionTest::testGetMemberInfo in Mailchimp 8
Same name and namespace in other branches
- 2.x modules/mailchimp_lists/tests/src/Functional/MailchimpListsSubscriptionTest.php \Drupal\Tests\mailchimp_lists\Functional\MailchimpListsSubscriptionTest::testGetMemberInfo()
Tests retrieval of member info for a list and email address.
File
- modules/
mailchimp_lists/ src/ Tests/ MailchimpListsSubscriptionTest.php, line 22
Class
- MailchimpListsSubscriptionTest
- Tests list subscription functionality.
Namespace
Drupal\Tests\mailchimp_lists\FunctionalCode
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);
}