public function MailchimpEcommerceTest::testDeleteOrder in Mailchimp 8
Tests library functionality for deleting an order.
File
- lib/
mailchimp-api-php/ tests/ MailchimpEcommerceTest.php, line 484
Class
- MailchimpEcommerceTest
- Mailchimp Ecommerce test library.
Namespace
Mailchimp\TestsCode
public function testDeleteOrder() {
$store_id = 'MC002';
$order_id = 'ord0001';
$mc = new MailchimpEcommerce();
$mc
->deleteOrder($store_id, $order_id);
$this
->assertEquals('DELETE', $mc
->getClient()->method);
$this
->assertEquals($mc
->getEndpoint() . '/ecommerce/stores/' . $store_id . '/orders/' . $order_id, $mc
->getClient()->uri);
}