You are here

public function MailchimpCampaignsTest::testGetCampaign in Mailchimp 8

Tests library functionality for campaign information.

File

lib/mailchimp-api-php/tests/MailchimpCampaignsTest.php, line 28

Class

MailchimpCampaignsTest
Mailchimp Campaign test library.

Namespace

Mailchimp\Tests

Code

public function testGetCampaign() {
  $campaign_id = '42694e9e57';
  $mc = new MailchimpCampaigns();
  $mc
    ->getCampaign($campaign_id);
  $this
    ->assertEquals('GET', $mc
    ->getClient()->method);
  $this
    ->assertEquals($mc
    ->getEndpoint() . '/campaigns/' . $campaign_id, $mc
    ->getClient()->uri);
}