You are here

public function RemoveSingleOgMembershipRoleActionTest::executeProvider in Organic groups 8

Data provider for testExecute().

Overrides ActionTestBase::executeProvider

File

tests/src/Kernel/Action/RemoveSingleOgMembershipRoleActionTest.php, line 52

Class

RemoveSingleOgMembershipRoleActionTest
Tests the RemoveSingleOgMembershipRole action plugin.

Namespace

Drupal\Tests\og\Kernel\Action

Code

public function executeProvider() {
  return [
    // If no default role is passed, the plugin should default to the first
    // available role (administrator).
    [
      'group_administrator',
      NULL,
      'administrator',
    ],
    [
      'group_administrator',
      'administrator',
      'administrator',
    ],
    [
      'group_administrator',
      'moderator',
      'moderator',
    ],
    [
      'group_moderator',
      NULL,
      'administrator',
    ],
    [
      'group_moderator',
      'administrator',
      'administrator',
    ],
    [
      'group_moderator',
      'moderator',
      'moderator',
    ],
  ];
}