You are here

public function MailgunFactoryTest::testClientService in Mailgun 8

Make sure the client may be retrieved as a service.

File

tests/src/Kernel/MailgunFactoryTest.php, line 29

Class

MailgunFactoryTest
Mailgun client factory test.

Namespace

Drupal\Tests\mailgun\Kernel

Code

public function testClientService() {
  $api_key = 'test';
  $this
    ->setConfigValue('api_key', $api_key);
  $mailgun = $this->container
    ->get('mailgun.mailgun_client');
  $this
    ->assertInstanceOf(Mailgun::class, $mailgun);
}