You are here

public function MailchimpLists::getInterests in Mailchimp 8

Same name in this branch
  1. 8 lib/mailchimp-api-php/src/MailchimpLists.php \Mailchimp\MailchimpLists::getInterests()
  2. 8 lib/mailchimp-api-php/tests/src/MailchimpLists.php \Mailchimp\Tests\MailchimpLists::getInterests()

@inheritdoc

Overrides MailchimpLists::getInterests

File

lib/mailchimp-api-php/tests/src/MailchimpLists.php, line 92

Class

MailchimpLists
Mailchimp Lists library test cases.

Namespace

Mailchimp\Tests

Code

public function getInterests($list_id, $interest_category_id, $parameters = []) {
  parent::getInterests($list_id, $interest_category_id, $parameters);
  $response = (object) [
    'interests' => [
      (object) [
        'category_id' => $interest_category_id,
        'list_id' => $list_id,
        'id' => '9143cf3bd1',
        'name' => 'Test Interest',
      ],
    ],
    'total_items' => 1,
  ];
  return $response;
}