You are here

public function MailchimpAutomationsTest::testGetAutomations in Mailchimp 8

Tests library functionality for automations.

File

lib/mailchimp-api-php/tests/MailchimpAutomationsTest.php, line 12

Class

MailchimpAutomationsTest

Namespace

Mailchimp\Tests

Code

public function testGetAutomations() {
  $mc = new MailchimpAutomations();
  $mc
    ->getAutomations();
  $this
    ->assertEquals('GET', $mc
    ->getClient()->method);
  $this
    ->assertEquals($mc
    ->getEndpoint() . '/automations', $mc
    ->getClient()->uri);
}