function TransportTest::providerTestBuiltinFactory

Same name and namespace in other branches
  1. 11.x core/modules/mailer/tests/src/Kernel/TransportTest.php \Drupal\Tests\mailer\Kernel\TransportTest::providerTestBuiltinFactory()

Provides test data for testBuiltinFactory().

File

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

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.