You are here

public function MailchimpEcommerceTest::testGetStore in Mailchimp 8

Tests library functionality for store information.

File

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

Class

MailchimpEcommerceTest
Mailchimp Ecommerce test library.

Namespace

Mailchimp\Tests

Code

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