public function MailchimpCampaignsTest::testGetCampaignContent in Mailchimp 8
Tests library functionality for getting campaign content.
File
- lib/
mailchimp-api-php/ tests/ MailchimpCampaignsTest.php, line 71
Class
- MailchimpCampaignsTest
- Mailchimp Campaign test library.
Namespace
Mailchimp\TestsCode
public function testGetCampaignContent() {
$campaign_id = '42694e9e57';
$mc = new MailchimpCampaigns();
$mc
->getCampaignContent($campaign_id);
$this
->assertEquals('GET', $mc
->getClient()->method);
$this
->assertEquals($mc
->getEndpoint() . '/campaigns/' . $campaign_id . '/content', $mc
->getClient()->uri);
}