You are here

public function MailChimp_ListsTest::webhooks in Mailchimp 7.3

See also

Mailchimp_Lists::webhooks()

File

tests/mailchimp_lists_test.inc, line 315
A virtual MailChimp Lists API implementation for use in testing.

Class

MailChimp_ListsTest

Code

public function webhooks($id) {
  $lists = $this
    ->loadLists();
  if (isset($lists[$id])) {
    $response = $lists[$id]['webhooks'];
  }
  else {
    $response = array(
      'status' => 'error',
      'code' => 200,
      'name' => 'List_DoesNotExist',
    );
  }
  return $response;
}