You are here

public function ManagerTest::providerTestGetFlags in Message Subscribe 8

Data provider for testGetFlags().

Return value

array An array of arguments for self::testGetFlags().

File

message_subscribe_email/tests/src/Unit/ManagerTest.php, line 52

Class

ManagerTest
Unit tests for the message subscribe email manager utility class.

Namespace

Drupal\Tests\message_subscribe_email\Unit

Code

public function providerTestGetFlags() {

  // No flags.
  $return[] = [
    [],
    [],
  ];

  // No matching flags.
  $flag = $this
    ->prophesize(FlagInterface::class)
    ->reveal();
  $return[] = [
    [],
    [
      'foo_flag' => $flag,
    ],
  ];

  // A few matching flags.
  $return[] = [
    [
      'non_standard_prefix_one' => $flag,
      'non_standard_prefix_two' => $flag,
    ],
    [
      'foo_flag' => $flag,
      'non_standard_prefix_one' => $flag,
      'non_standard_prefix_two' => $flag,
    ],
  ];
  return $return;
}