You are here

public function MailchimpListsSubscriptionTest::testUpdateMember in Mailchimp 2.x

Same name and namespace in other branches
  1. 8 modules/mailchimp_lists/src/Tests/MailchimpListsSubscriptionTest.php \Drupal\Tests\mailchimp_lists\Functional\MailchimpListsSubscriptionTest::testUpdateMember()

Tests updating a list member.

File

modules/mailchimp_lists/tests/src/Functional/MailchimpListsSubscriptionTest.php, line 77

Class

MailchimpListsSubscriptionTest
Tests list subscription functionality.

Namespace

Drupal\Tests\mailchimp_lists\Functional

Code

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.');
}