You are here

public function UnblockOgMembershipActionTest::accessProvider in Organic groups 8

Data provider for testAccess().

Overrides ActionTestBase::accessProvider

File

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

Class

UnblockOgMembershipActionTest
Tests the UnblockOgMembership action plugin.

Namespace

Drupal\Tests\og\Kernel\Action

Code

public function accessProvider() {
  return [
    // Access should be provided if the membership is blocked and the user
    // executing the action is a privileged user.
    [
      'uid1',
      'blocked',
    ],
    [
      'administrator',
      'blocked',
    ],
    [
      'group_administrator',
      'blocked',
    ],
    [
      'group_moderator',
      'blocked',
    ],
    [
      'group_owner',
      'blocked',
      TRUE,
    ],
  ];
}