You are here

public function MailchimpAutomationsTest::testGetWorkflowEmails in Mailchimp 8

Tests library functionality for workflow automation emails.

File

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

Class

MailchimpAutomationsTest

Namespace

Mailchimp\Tests

Code

public function testGetWorkflowEmails() {
  $workflow_id = '57afe96172';
  $mc = new MailchimpAutomations();
  $mc
    ->getWorkflowEmails($workflow_id);
  $this
    ->assertEquals('GET', $mc
    ->getClient()->method);
  $this
    ->assertEquals($mc
    ->getEndpoint() . '/automations/' . $workflow_id . '/emails', $mc
    ->getClient()->uri);
}