You are here

public function MailchimpAPITest::testApi in Mailchimp 8

Same name and namespace in other branches
  1. 2.x tests/src/Functional/MailchimpAPITest.php \Drupal\Tests\mailchimp\Functional\MailchimpAPITest::testApi()

Tests that the test API has been loaded.

File

tests/src/Functional/MailchimpAPITest.php, line 15

Class

MailchimpAPITest
Tests core API functionality.

Namespace

Drupal\Tests\mailchimp\Functional

Code

public function testApi() {
  $mailchimp_api = mailchimp_get_api_object();
  $this
    ->assertNotNull($mailchimp_api);
  $this
    ->assertEqual(get_class($mailchimp_api), 'Mailchimp\\Tests\\Mailchimp');
}