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