function TransportTest::providerTestBuiltinFactory

Provides test data for testBuiltinFactory().

File

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

Class

TransportTest
Tests the transport factory service.

Namespace

Drupal\Tests\mailer\Kernel

Code

public static function providerTestBuiltinFactory() : iterable {
    (yield [
        'null',
        'null',
        NullTransport::class,
    ]);
    (yield [
        'sendmail',
        'default',
        SendmailTransport::class,
    ]);
    (yield [
        'smtp',
        'default',
        EsmtpTransport::class,
    ]);
}

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