You are here

public function MailchimpEcommerceTest::testGetCustomers in Mailchimp 8

Tests library function for getting customers.

File

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

Class

MailchimpEcommerceTest
Mailchimp Ecommerce test library.

Namespace

Mailchimp\Tests

Code

public function testGetCustomers() {
  $store_id = 'MC001';
  $mc = new MailchimpEcommerce();
  $mc
    ->getCustomers($store_id);
  $this
    ->assertEquals('GET', $mc
    ->getClient()->method);
  $this
    ->assertEquals($mc
    ->getEndPoint() . '/ecommerce/stores/' . $store_id . '/customers', $mc
    ->getClient()->uri);
}