public function MailchimpEcommerceTest::testDeleteCartLine in Mailchimp 8
Tests library function for deleting a cart line item.
File
- lib/
mailchimp-api-php/ tests/ MailchimpEcommerceTest.php, line 284
Class
- MailchimpEcommerceTest
- Mailchimp Ecommerce test library.
Namespace
Mailchimp\TestsCode
public function testDeleteCartLine() {
$store_id = 'MC001';
$cart_id = 'cart0001';
$line_id = 'L001';
$mc = new MailchimpEcommerce();
$mc
->deleteCartLine($store_id, $cart_id, $line_id);
$this
->assertEquals('DELETE', $mc
->getClient()->method);
$this
->assertEquals($mc
->getEndPoint() . '/ecommerce/stores/' . $store_id . '/carts/' . $cart_id . '/lines/' . $line_id, $mc
->getClient()->uri);
}