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