function TransportTest::testDefaultTestMailFactory
Same name and namespace in other branches
- 11.x core/modules/mailer/tests/src/Kernel/TransportTest.php \Drupal\Tests\mailer\Kernel\TransportTest::testDefaultTestMailFactory()
Tests default test mail factory.
@legacy-covers ::createTransport
File
-
core/
modules/ mailer/ tests/ src/ Kernel/ TransportTest.php, line 84
Class
- TransportTest
- Tests the transport factory service.
Namespace
Drupal\Tests\mailer\KernelCode
public function testDefaultTestMailFactory() : void {
$actual = $this->container
->get(TransportInterface::class);
$this->assertInstanceOf(NullTransport::class, $actual);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.