public function MailchimpEcommerceTest::testGetCarts in Mailchimp 8
Tests library functionality for getting information on a store's carts.
File
- lib/
mailchimp-api-php/ tests/ MailchimpEcommerceTest.php, line 103
Class
- MailchimpEcommerceTest
- Mailchimp Ecommerce test library.
Namespace
Mailchimp\TestsCode
public function testGetCarts() {
$store_id = 'MC001';
$mc = new MailchimpEcommerce();
$mc
->getCarts($store_id);
$this
->assertEquals('GET', $mc
->getClient()->method);
$this
->assertEquals($mc
->getEndpoint() . '/ecommerce/stores/' . $store_id . '/carts', $mc
->getClient()->uri);
}