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