public function MailchimpAutomationsTest::testGetWorkflowEmailSubscriber in Mailchimp 8
Tests library functionality for a user in a workflow automation queue.
File
- lib/
mailchimp-api-php/ tests/ MailchimpAutomationsTest.php, line 77
Class
Namespace
Mailchimp\TestsCode
public function testGetWorkflowEmailSubscriber() {
$workflow_id = '57afe96172';
$workflow_email_id = 'a87de7d1e5';
$email = 'test@example.com';
$mc = new MailchimpAutomations();
$mc
->getWorkflowEmailSubscriber($workflow_id, $workflow_email_id, $email);
$this
->assertEquals('GET', $mc
->getClient()->method);
$this
->assertEquals($mc
->getEndpoint() . '/automations/' . $workflow_id . '/emails/' . $workflow_email_id . '/queue/' . md5($email), $mc
->getClient()->uri);
}