public function MailchimpListsTest::testGetList in Mailchimp 2.x
Same name and namespace in other branches
- 8 modules/mailchimp_lists/src/Tests/MailchimpListsTest.php \Drupal\Tests\mailchimp_lists\Functional\MailchimpListsTest::testGetList()
Tests that a list can be loaded.
File
- modules/
mailchimp_lists/ tests/ src/ Functional/ 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
->assertSame($list->id, $list_id);
$this
->assertSame($list->name, 'Test List One');
}