You are here

public function MailchimpListsTest::testGetSegments in Mailchimp 8

Tests library functionality for list segment information.

File

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

Class

MailchimpListsTest
Mailchimp Lists test library.

Namespace

Mailchimp\Tests

Code

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