public function MailchimpEcommerceTest::testsGetProducts in Mailchimp 8
Test getting all products.
File
- lib/
mailchimp-api-php/ tests/ MailchimpEcommerceTest.php, line 558
Class
- MailchimpEcommerceTest
- Mailchimp Ecommerce test library.
Namespace
Mailchimp\TestsCode
public function testsGetProducts() {
$store_id = 'MC001';
$mc = new MailchimpEcommerce();
$mc
->getProducts($store_id);
// Method must be GET.
$this
->assertEquals('GET', $mc
->getClient()->method);
// Confirm the URI being used.
$this
->assertEquals($mc
->getEndpoint() . '/ecommerce/stores/' . $store_id . '/products', $mc
->getClient()->uri);
}