You are here

public function MailchimpTemplatesTest::testGetTemplates in Mailchimp 8

Tests library functionality for templates information.

File

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

Class

MailchimpTemplatesTest
Mailchimp Templates test library.

Namespace

Mailchimp\Tests

Code

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