You are here

public function MailchimpListsTest::testGetMembers in Mailchimp 8

Tests library functionality for members information.

File

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

Class

MailchimpListsTest
Mailchimp Lists test library.

Namespace

Mailchimp\Tests

Code

public function testGetMembers() {
  $list_id = '57afe96172';
  $mc = new MailchimpLists();
  $mc
    ->getMembers($list_id);
  $this
    ->assertEquals('GET', $mc
    ->getClient()->method);
  $this
    ->assertEquals($mc
    ->getEndpoint() . '/lists/' . $list_id . '/members', $mc
    ->getClient()->uri);
}