You are here

public function ConversionTest::swiftmailer_parse_mailboxes_dataProvider in Swift Mailer 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/Utility/ConversionTest.php \Drupal\Tests\swiftmailer\Kernel\Utility\ConversionTest::swiftmailer_parse_mailboxes_dataProvider()

DataProvider for ::test_swiftmailer_parse_mailboxes.

File

tests/src/Kernel/Utility/ConversionTest.php, line 24

Class

ConversionTest
@coversDefaultClass \Drupal\swiftmailer\Utility\Conversion @group swiftmailer

Namespace

Drupal\Tests\swiftmailer\Kernel\Utility

Code

public function swiftmailer_parse_mailboxes_dataProvider() {
  return [
    [
      'mail@example.com',
      [
        'mail@example.com',
      ],
    ],
    [
      'mail1@example.com;mail2@example.com',
      [
        'mail1@example.com',
        'mail2@example.com',
      ],
    ],
    [
      'mail1@example.com;invalid-email',
      [
        'mail1@example.com',
      ],
    ],
  ];
}