public function MailchimpReportsTest::testCampaignReport in Mailchimp 8
Tests library functionality for campaign report information.
File
- lib/
mailchimp-api-php/ tests/ MailchimpReportsTest.php, line 41
Class
- MailchimpReportsTest
- Mailchimp Reports test library.
Namespace
Mailchimp\TestsCode
public function testCampaignReport() {
$campaign_id = '42694e9e57';
$type = 'email-activity';
$mc = new MailchimpReports();
$mc
->getCampaignReport($campaign_id, $type);
$this
->assertEquals('GET', $mc
->getClient()->method);
$this
->assertEquals($mc
->getEndpoint() . '/reports/' . $campaign_id . '/' . $type, $mc
->getClient()->uri);
}