You are here

public function MailchimpAutomationsTest::testGetWorkflowEmailSubscribers in Mailchimp 8

Tests library functionality for workflow automation email queues.

File

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

Class

MailchimpAutomationsTest

Namespace

Mailchimp\Tests

Code

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