You are here

public function MailchimpListsTest::testGetInterests in Mailchimp 8

Tests library functionality for interests information.

File

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

Class

MailchimpListsTest
Mailchimp Lists test library.

Namespace

Mailchimp\Tests

Code

public function testGetInterests() {
  $list_id = '';
  $interest_category_id = '';
  $mc = new MailchimpLists();
  $mc
    ->getInterests($list_id, $interest_category_id);
  $this
    ->assertEquals('GET', $mc
    ->getClient()->method);
  $this
    ->assertEquals($mc
    ->getEndpoint() . '/lists/' . $list_id . '/interest-categories/' . $interest_category_id . '/interests', $mc
    ->getClient()->uri);
}