You are here

protected function OgRoleManagerTest::getDefaultRoleProperties in Organic groups 8

Returns the expected properties of the default role with the given name.

Return value

array The default properties.

1 call to OgRoleManagerTest::getDefaultRoleProperties()
OgRoleManagerTest::testCreatePerBundleRoles in tests/src/Unit/OgRoleManagerTest.php
Tests creation of per bundle roles.

File

tests/src/Unit/OgRoleManagerTest.php, line 182

Class

OgRoleManagerTest
Tests create membership helper function.

Namespace

Drupal\Tests\og\Unit

Code

protected function getDefaultRoleProperties() {
  return [
    OgRoleInterface::ANONYMOUS => [
      'role_type' => OgRoleInterface::ROLE_TYPE_REQUIRED,
      'label' => 'Non-member',
      'name' => OgRoleInterface::ANONYMOUS,
    ],
    OgRoleInterface::AUTHENTICATED => [
      'role_type' => OgRoleInterface::ROLE_TYPE_REQUIRED,
      'label' => 'Member',
      'name' => OgRoleInterface::AUTHENTICATED,
    ],
  ];
}