public function MailchimpListsSubscriptionTest::testUpdateMember in Mailchimp 8
Same name and namespace in other branches
- 2.x modules/mailchimp_lists/tests/src/Functional/MailchimpListsSubscriptionTest.php \Drupal\Tests\mailchimp_lists\Functional\MailchimpListsSubscriptionTest::testUpdateMember()
Tests updating a list member.
File
- modules/
mailchimp_lists/ src/ Tests/ MailchimpListsSubscriptionTest.php, line 77
Class
- MailchimpListsSubscriptionTest
- Tests list subscription functionality.
Namespace
Drupal\Tests\mailchimp_lists\FunctionalCode
public function testUpdateMember() {
$list_id = '57afe96172';
$email = 'test@example.org';
$updated = mailchimp_update_member($list_id, $email, NULL, NULL, 'text');
$this
->assertNotEmpty($updated, 'Tested user update.');
}