You are here

public function MailchimpTemplatesTest::testGetTemplate in Mailchimp 8

Tests library functionality for template information.

File

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

Class

MailchimpTemplatesTest
Mailchimp Templates test library.

Namespace

Mailchimp\Tests

Code

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