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