You are here

public function MailchimpListsTestCase::testGetList in Mailchimp 7.5

Same name and namespace in other branches
  1. 7.3 modules/mailchimp_lists/tests/mailchimp_lists.test \MailchimpListsTestCase::testGetList()
  2. 7.4 modules/mailchimp_lists/tests/mailchimp_lists.test \MailchimpListsTestCase::testGetList()

Tests retrieval of a specific list.

File

modules/mailchimp_lists/tests/mailchimp_lists.test, line 61
Test class and methods for the Mailchimp Lists/Audiences module.

Class

MailchimpListsTestCase
@file Test class and methods for the Mailchimp Lists/Audiences module.

Code

public function testGetList() {
  $list_id = '57afe96172';
  $list = mailchimp_get_list($list_id);
  $this
    ->assertEqual($list->id, $list_id);
  $this
    ->assertEqual($list->name, 'Test List One');
}