function TransportTest::testBuiltinFactory

Tests builtin factory.

@legacy-covers ::createTransport

Attributes

#[DataProvider('providerTestBuiltinFactory')]

File

core/modules/mailer/tests/src/Kernel/TransportTest.php, line 94

Class

TransportTest
Tests the transport factory service.

Namespace

Drupal\Tests\mailer\Kernel

Code

public function testBuiltinFactory(string $schema, string $host, string $expected) : void {
  $this->setUpMailerDsnConfigOverride($schema, $host);
  $actual = $this->container
    ->get(TransportInterface::class);
  $this->assertInstanceOf($expected, $actual);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.