public function MailchimpListsTest::testRemoveMember in Mailchimp 8
Tests library functionality for removing a list member.
File
- lib/
mailchimp-api-php/ tests/ MailchimpListsTest.php, line 162
Class
- MailchimpListsTest
- Mailchimp Lists test library.
Namespace
Mailchimp\TestsCode
public function testRemoveMember() {
$list_id = '57afe96172';
$email = 'test@example.com';
$mc = new MailchimpLists();
$mc
->removeMember($list_id, $email);
$this
->assertEquals('DELETE', $mc
->getClient()->method);
$this
->assertEquals($mc
->getEndpoint() . '/lists/' . $list_id . '/members/' . md5($email), $mc
->getClient()->uri);
}