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