You are here

public function MailchimpReportsTest::testCampaignSummary in Mailchimp 8

Tests library functionality for campaign report information.

File

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

Class

MailchimpReportsTest
Mailchimp Reports test library.

Namespace

Mailchimp\Tests

Code

public function testCampaignSummary() {
  $campaign_id = '42694e9e57';
  $mc = new MailchimpReports();
  $mc
    ->getCampaignSummary($campaign_id);
  $this
    ->assertEquals('GET', $mc
    ->getClient()->method);
  $this
    ->assertEquals($mc
    ->getEndpoint() . '/reports/' . $campaign_id, $mc
    ->getClient()->uri);
}