You are here

public function MailchimpListsTest::testGetSegment in Mailchimp 8

Tests library functionality for list segment information.

File

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

Class

MailchimpListsTest
Mailchimp Lists test library.

Namespace

Mailchimp\Tests

Code

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