You are here

public function MailgunFactoryTest::testCreate in Mailgun 8

Make sure the client factory returns a client object.

File

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

Class

MailgunFactoryTest
Mailgun client factory test.

Namespace

Drupal\Tests\mailgun\Kernel

Code

public function testCreate() {
  $factory = $this->container
    ->get('mailgun.mailgun_client_factory');
  $this
    ->assertInstanceOf(MailgunFactory::class, $factory);
  $this
    ->assertInstanceOf(Mailgun::class, $factory
    ->create());
}