You are here

public function MailchimpEcommerceTest::testGetOrders in Mailchimp 8

Tests library function for getting orders.

File

lib/mailchimp-api-php/tests/MailchimpEcommerceTest.php, line 392

Class

MailchimpEcommerceTest
Mailchimp Ecommerce test library.

Namespace

Mailchimp\Tests

Code

public function testGetOrders() {
  $store_id = 'MC001';
  $mc = new MailchimpEcommerce();
  $mc
    ->getOrders($store_id);
  $this
    ->assertEquals('GET', $mc
    ->getClient()->method);
  $this
    ->assertEquals($mc
    ->getEndpoint() . '/ecommerce/stores/' . $store_id . '/orders', $mc
    ->getClient()->uri);
}