You are here

public function MailchimpAutomations::getWorkflowEmails in Mailchimp 8

Same name in this branch
  1. 8 lib/mailchimp-api-php/src/MailchimpAutomations.php \Mailchimp\MailchimpAutomations::getWorkflowEmails()
  2. 8 lib/mailchimp-api-php/tests/src/MailchimpAutomations.php \Mailchimp\Tests\MailchimpAutomations::getWorkflowEmails()

@inheritdoc

Overrides MailchimpAutomations::getWorkflowEmails

File

lib/mailchimp-api-php/tests/src/MailchimpAutomations.php, line 68

Class

MailchimpAutomations

Namespace

Mailchimp\Tests

Code

public function getWorkflowEmails($workflow_id) {
  parent::getWorkflowEmails($workflow_id);
  $response = (object) [
    'emails' => [
      (object) [
        'id' => 'a87de7d1e5',
        'workflow_id' => '57afe96172',
        'position' => 1,
        'status' => 'sending',
        'emails_sent' => 1,
        'send_time' => '2016-07-20T15:48:04+00:00',
        'content_type' => 'template',
      ],
    ],
    'total_items' => 1,
  ];
  return $response;
}