You are here

public function ApprovePendingOgMembershipActionTest::accessProvider in Organic groups 8

Data provider for testAccess().

Overrides ActionTestBase::accessProvider

File

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

Class

ApprovePendingOgMembershipActionTest
Tests the ApprovePendingOgMembership action plugin.

Namespace

Drupal\Tests\og\Kernel\Action

Code

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