public function MailchimpCampaignsTestCase::testGetCampaign in Mailchimp 7.3
Same name and namespace in other branches
- 7.5 modules/mailchimp_campaign/tests/mailchimp_campaigns.test \MailchimpCampaignsTestCase::testGetCampaign()
- 7.4 modules/mailchimp_campaign/tests/mailchimp_campaigns.test \MailchimpCampaignsTestCase::testGetCampaign()
Tests retrieval of a specific campaign.
File
- modules/
mailchimp_campaign/ tests/ mailchimp_campaigns.test, line 68 - Test class and methods for the Mailchimp Campaigns module.
Class
- MailchimpCampaignsTestCase
- @file Test class and methods for the Mailchimp Campaigns module.
Code
public function testGetCampaign() {
$campaign_id = MAILCHIMP_TEST_CAMPAIGN_A;
$campaign = mailchimp_get_campaign_data($campaign_id);
$this
->assertTrue(is_array($campaign), 'Tested retrieval of campaign data.');
$this
->assertEqual($campaign['id'], $campaign_id);
}