public function MailchimpListsTest::testGetList in Mailchimp 8
Same name in this branch
- 8 lib/mailchimp-api-php/tests/MailchimpListsTest.php \Mailchimp\Tests\MailchimpListsTest::testGetList()
- 8 modules/mailchimp_lists/src/Tests/MailchimpListsTest.php \Drupal\Tests\mailchimp_lists\Functional\MailchimpListsTest::testGetList()
Same name and namespace in other branches
- 2.x modules/mailchimp_lists/tests/src/Functional/MailchimpListsTest.php \Drupal\Tests\mailchimp_lists\Functional\MailchimpListsTest::testGetList()
Tests that a list can be loaded.
File
- modules/
mailchimp_lists/ src/ Tests/ MailchimpListsTest.php, line 22
Class
- MailchimpListsTest
- Tests core lists functionality.
Namespace
Drupal\Tests\mailchimp_lists\FunctionalCode
public function testGetList() {
$list_id = '57afe96172';
$list = mailchimp_get_list($list_id);
$this
->assertEqual($list->id, $list_id);
$this
->assertEqual($list->name, 'Test List One');
}