public function ApprovePendingOgMembershipActionTest::noAccessProvider in Organic groups 8
Data provider for testNoAccess().
Overrides ActionTestBase::noAccessProvider
File
- tests/
src/ Kernel/ Action/ ApprovePendingOgMembershipActionTest.php, line 67
Class
- ApprovePendingOgMembershipActionTest
- Tests the ApprovePendingOgMembership action plugin.
Namespace
Drupal\Tests\og\Kernel\ActionCode
public function noAccessProvider() {
return [
// Access is denied to users that are not privileged, and if the
// membership is in any state other than 'pending'.
[
'uid1',
'member',
],
[
'uid1',
'blocked',
],
[
'uid1',
'group_administrator',
],
[
'uid1',
'group_moderator',
],
[
'uid1',
'group_owner',
],
[
'administrator',
'member',
],
[
'administrator',
'blocked',
],
[
'administrator',
'group_administrator',
],
[
'administrator',
'group_moderator',
],
[
'administrator',
'group_owner',
],
[
'group_administrator',
'member',
],
[
'group_administrator',
'blocked',
],
[
'group_administrator',
'group_administrator',
],
[
'group_administrator',
'group_moderator',
],
[
'group_administrator',
'group_owner',
],
[
'group_moderator',
'member',
],
[
'group_moderator',
'blocked',
],
[
'group_moderator',
'group_administrator',
],
[
'group_moderator',
'group_moderator',
],
[
'group_moderator',
'group_owner',
],
[
'group_owner',
'member',
TRUE,
],
[
'group_owner',
'blocked',
TRUE,
],
[
'group_owner',
'group_administrator',
TRUE,
],
[
'group_owner',
'group_moderator',
TRUE,
],
[
'group_owner',
'group_owner',
TRUE,
],
[
'group_owner',
'member',
FALSE,
],
[
'group_owner',
'pending',
FALSE,
],
[
'group_owner',
'blocked',
FALSE,
],
[
'group_owner',
'group_administrator',
FALSE,
],
[
'group_owner',
'group_moderator',
FALSE,
],
[
'group_owner',
'group_owner',
FALSE,
],
[
'anonymous',
'member',
],
[
'anonymous',
'pending',
],
[
'anonymous',
'blocked',
],
[
'anonymous',
'group_administrator',
],
[
'anonymous',
'group_moderator',
],
[
'anonymous',
'group_owner',
],
[
'authenticated',
'member',
],
[
'authenticated',
'pending',
],
[
'authenticated',
'blocked',
],
[
'authenticated',
'group_administrator',
],
[
'authenticated',
'group_moderator',
],
[
'authenticated',
'group_owner',
],
[
'member',
'member',
],
[
'member',
'pending',
],
[
'member',
'blocked',
],
[
'member',
'group_administrator',
],
[
'member',
'group_moderator',
],
[
'member',
'group_owner',
],
[
'pending',
'member',
],
[
'pending',
'pending',
],
[
'pending',
'blocked',
],
[
'pending',
'group_administrator',
],
[
'pending',
'group_moderator',
],
[
'pending',
'group_owner',
],
[
'blocked',
'member',
],
[
'blocked',
'pending',
],
[
'blocked',
'blocked',
],
[
'blocked',
'group_administrator',
],
[
'blocked',
'group_moderator',
],
[
'blocked',
'group_owner',
],
];
}