You are here

public function MailchimpTemplatesTest::testGetTemplateContent in Mailchimp 8

Tests library functionality for template content information.

File

lib/mailchimp-api-php/tests/MailchimpTemplatesTest.php, line 41

Class

MailchimpTemplatesTest
Mailchimp Templates test library.

Namespace

Mailchimp\Tests

Code

public function testGetTemplateContent() {
  $template_id = '2000094';
  $mc = new MailchimpTemplates();
  $mc
    ->getTemplateContent($template_id);
  $this
    ->assertEquals('GET', $mc
    ->getClient()->method);
  $this
    ->assertEquals($mc
    ->getEndpoint() . '/templates/' . $template_id . '/default-content', $mc
    ->getClient()->uri);
}