You are here

protected function OgRoleManagerTest::getOgRoleManager in Organic groups 8

Return a new OG role manager object.

Return value

\Drupal\og\OgRoleManagerInterface The initialized OG role manager.

2 calls to OgRoleManagerTest::getOgRoleManager()
OgRoleManagerTest::testCreatePerBundleRoles in tests/src/Unit/OgRoleManagerTest.php
Tests creation of per bundle roles.
OgRoleManagerTest::testRoleRemoval in tests/src/Unit/OgRoleManagerTest.php
Tests role removal.

File

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

Class

OgRoleManagerTest
Tests create membership helper function.

Namespace

Drupal\Tests\og\Unit

Code

protected function getOgRoleManager() {
  return new OgRoleManager($this->entityTypeManager
    ->reveal(), $this->eventDispatcher
    ->reveal(), $this->permissionManager
    ->reveal());
}