You are here

public function OgAccessTestBase::permissionsProvider in Organic groups 8

Provides group level permissions to use in access tests.

Return value

array An array of test permissions.

File

tests/src/Unit/OgAccessTestBase.php, line 254

Class

OgAccessTestBase
Base class for tests of the OgAccess class.

Namespace

Drupal\Tests\og\Unit

Code

public function permissionsProvider() {
  return [
    // In the unit tests we don't really care about the permission name - it
    // can be an arbitrary string; except for
    // OgAccessTest::testUserAccessAdminPermission test which checks for
    // "administer group" permission.
    [
      OgAccess::UPDATE_GROUP_PERMISSION,
    ],
    [
      OgAccess::ADMINISTER_GROUP_PERMISSION,
    ],
  ];
}