public function MailchimpListsSubscriptionTest::testGetMemberInfo in Mailchimp 2.x
Same name and namespace in other branches
- 8 modules/mailchimp_lists/src/Tests/MailchimpListsSubscriptionTest.php \Drupal\Tests\mailchimp_lists\Functional\MailchimpListsSubscriptionTest::testGetMemberInfo()
Tests retrieval of member info for a list and email address.
File
- modules/
mailchimp_lists/ tests/ src/ Functional/ 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
->assertSame($member_info->id, md5($email));
$this
->assertSame($member_info->email_address, $email);
}