You are here

public function MailchimpListsTest::testGetList in Mailchimp 8

Same name in this branch
  1. 8 lib/mailchimp-api-php/tests/MailchimpListsTest.php \Mailchimp\Tests\MailchimpListsTest::testGetList()
  2. 8 modules/mailchimp_lists/src/Tests/MailchimpListsTest.php \Drupal\Tests\mailchimp_lists\Functional\MailchimpListsTest::testGetList()

Tests library functionality for list information.

File

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

Class

MailchimpListsTest
Mailchimp Lists test library.

Namespace

Mailchimp\Tests

Code

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