function TransportTest::testThirdPartyFactory
@covers ::createTransport
File
-
core/
modules/ mailer/ tests/ src/ Kernel/ TransportTest.php, line 151
Class
- TransportTest
- Tests the transport factory service.
Namespace
Drupal\Tests\mailer\KernelCode
public function testThirdPartyFactory() : void {
$this->enableModules([
'mailer_transport_factory_kernel_test',
]);
$this->setUpMailerDsnConfigOverride('drupal.test-canary', 'default');
$actual = $this->container
->get(TransportInterface::class);
$this->assertInstanceOf(CanaryTransport::class, $actual);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.