public function MailchimpCampaignsTest::testSend in Mailchimp 8
Tests library functionality for sending a campaign.
File
- lib/
mailchimp-api-php/ tests/ MailchimpCampaignsTest.php, line 206
Class
- MailchimpCampaignsTest
- Mailchimp Campaign test library.
Namespace
Mailchimp\TestsCode
public function testSend() {
$campaign_id = 'b03bfc273a';
$mc = new MailchimpCampaigns();
$mc
->send($campaign_id);
$this
->assertEquals('POST', $mc
->getClient()->method);
$this
->assertEquals($mc
->getEndpoint() . '/campaigns/' . $campaign_id . '/actions/send', $mc
->getClient()->uri);
}