You are here

public function MailchimpListsTest::testGetMemberActivity in Mailchimp 8

Tests library functionality for member activity information.

File

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

Class

MailchimpListsTest
Mailchimp Lists test library.

Namespace

Mailchimp\Tests

Code

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