You are here

public function MailchimpCampaignsTest::testGetSendChecklist in Mailchimp 8

Tests library functionality for getting a campaign send checklist.

File

lib/mailchimp-api-php/tests/MailchimpCampaignsTest.php, line 106

Class

MailchimpCampaignsTest
Mailchimp Campaign test library.

Namespace

Mailchimp\Tests

Code

public function testGetSendChecklist() {
  $campaign_id = '42694e9e57';
  $mc = new MailchimpCampaigns();
  $mc
    ->getSendChecklist($campaign_id);
  $this
    ->assertEquals('GET', $mc
    ->getClient()->method);
  $this
    ->assertEquals($mc
    ->getEndpoint() . '/campaigns/' . $campaign_id . '/send-checklist', $mc
    ->getClient()->uri);
}