You are here

public function MailchimpEcommerceTest::testGetStores in Mailchimp 8

Tests library functionality for stores information.

File

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

Class

MailchimpEcommerceTest
Mailchimp Ecommerce test library.

Namespace

Mailchimp\Tests

Code

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