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