You are here

public function MailchimpEcommerceTest::testGetOrderLines in Mailchimp 8

Tests library function for getting order lines.

File

lib/mailchimp-api-php/tests/MailchimpEcommerceTest.php, line 498

Class

MailchimpEcommerceTest
Mailchimp Ecommerce test library.

Namespace

Mailchimp\Tests

Code

public function testGetOrderLines() {
  $store_id = 'MC001';
  $order_id = 'ord0001';
  $mc = new MailchimpEcommerce();
  $mc
    ->getOrderLines($store_id, $order_id);
  $this
    ->assertEquals('GET', $mc
    ->getClient()->method);
  $this
    ->assertEquals($mc
    ->getEndPoint() . '/ecommerce/stores/' . $store_id . '/orders/' . $order_id . '/lines', $mc
    ->getClient()->uri);
}