You are here

public function MailchimpListsTest::testGetMemberInfo in Mailchimp 8

Tests library functionality for member information.

File

lib/mailchimp-api-php/tests/MailchimpListsTest.php, line 114

Class

MailchimpListsTest
Mailchimp Lists test library.

Namespace

Mailchimp\Tests

Code

public function testGetMemberInfo() {
  $list_id = '57afe96172';
  $email = 'test@example.com';
  $mc = new MailchimpLists();
  $mc
    ->getMemberInfo($list_id, $email);
  $this
    ->assertEquals('GET', $mc
    ->getClient()->method);
  $this
    ->assertEquals($mc
    ->getEndpoint() . '/lists/' . $list_id . '/members/' . md5($email), $mc
    ->getClient()->uri);
}