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