You are here

public function MailchimpAutomations::getAutomations in Mailchimp 8

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

@inheritdoc

Overrides MailchimpAutomations::getAutomations

File

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

Class

MailchimpAutomations

Namespace

Mailchimp\Tests

Code

public function getAutomations($parameters = []) {
  parent::getAutomations($parameters);
  $response = (object) [
    'automations' => [
      (object) [
        'id' => '57afe96172',
        'name' => 'Test Automation One',
      ],
      (object) [
        'id' => 'f4b7b26b2e',
        'name' => 'Test Automation Two',
      ],
      (object) [
        'id' => '587693d673',
        'name' => 'Test Automation Three',
      ],
    ],
    'total_items' => 3,
  ];
  return $response;
}