public function MailchimpEcommerceTest::testDeleteCustomer in Mailchimp 8
Tests library function for deleting a customer.
File
- lib/
mailchimp-api-php/ tests/ MailchimpEcommerceTest.php, line 378
Class
- MailchimpEcommerceTest
- Mailchimp Ecommerce test library.
Namespace
Mailchimp\TestsCode
public function testDeleteCustomer() {
$store_id = 'MC001';
$customer_id = 'cust0003';
$mc = new MailchimpEcommerce();
$mc
->deleteCustomer($store_id, $customer_id);
$this
->assertEquals('DELETE', $mc
->getClient()->method);
$this
->assertEquals($mc
->getEndPoint() . '/ecommerce/stores/' . $store_id . '/customers/' . $customer_id, $mc
->getClient()->uri);
}