You are here

public function MailchimpListsTest::testGetInterestCategories in Mailchimp 8

Tests library functionality for interest categories information.

File

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

Class

MailchimpListsTest
Mailchimp Lists test library.

Namespace

Mailchimp\Tests

Code

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