You are here

public function MailchimpEcommerceTest::testGetCustomer in Mailchimp 8

Tests library function for getting a customer.

File

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

Class

MailchimpEcommerceTest
Mailchimp Ecommerce test library.

Namespace

Mailchimp\Tests

Code

public function testGetCustomer() {
  $store_id = 'MC001';
  $customer_id = 'cust0001';
  $mc = new MailchimpEcommerce();
  $mc
    ->getCustomer($store_id, $customer_id);
  $this
    ->assertEquals('GET', $mc
    ->getClient()->method);
  $this
    ->assertEquals($mc
    ->getEndpoint() . '/ecommerce/stores/' . $store_id . '/customers/' . $customer_id, $mc
    ->getClient()->uri);
}