public function MailchimpListsTest::testGetSegmentMembers in Mailchimp 8
Tests library functionality for segment member information.
File
- lib/
mailchimp-api-php/ tests/ MailchimpListsTest.php, line 272
Class
- MailchimpListsTest
- Mailchimp Lists test library.
Namespace
Mailchimp\TestsCode
public function testGetSegmentMembers() {
$list_id = '205d96e6b4';
$segment_id = '457';
$mc = new MailchimpLists();
$mc
->getSegmentMembers($list_id, $segment_id);
$this
->assertEquals('GET', $mc
->getClient()->method);
$this
->assertEquals($mc
->getEndpoint() . '/lists/' . $list_id . '/segments/' . $segment_id . '/members', $mc
->getClient()->uri);
}