public function MailchimpEcommerceTest::testGetCartLines in Mailchimp 8
Tests library function for getting cart lines.
File
- lib/
mailchimp-api-php/ tests/ MailchimpEcommerceTest.php, line 209
Class
- MailchimpEcommerceTest
- Mailchimp Ecommerce test library.
Namespace
Mailchimp\TestsCode
public function testGetCartLines() {
$store_id = 'MC001';
$cart_id = 'cart0001';
$mc = new MailchimpEcommerce();
$mc
->getCartLines($store_id, $cart_id);
$this
->assertEquals('GET', $mc
->getClient()->method);
$this
->assertEquals($mc
->getEndpoint() . '/ecommerce/stores/' . $store_id . '/carts/' . $cart_id . '/lines', $mc
->getClient()->uri);
}