protected function OgRoleTest::loadUnchangedOgRole in Organic groups 8
Loads the unchanged OgRole directly from the database.
Parameters
string $id: The ID of the role to load.
Return value
\Drupal\Core\Entity\EntityInterface|null The role, or NULL if there is no such role.
2 calls to OgRoleTest::loadUnchangedOgRole()
- OgRoleTest::testRequiredRoles in tests/
src/ Kernel/ Entity/ OgRoleTest.php - Tests the creation and deletion of required roles.
- OgRoleTest::testRoleCreate in tests/
src/ Kernel/ Entity/ OgRoleTest.php - Testing OG role creation.
File
- tests/
src/ Kernel/ Entity/ OgRoleTest.php, line 309
Class
- OgRoleTest
- Test OG role creation.
Namespace
Drupal\Tests\og\Kernel\EntityCode
protected function loadUnchangedOgRole($id) {
return $this->entityTypeManager
->getStorage('og_role')
->loadUnchanged($id);
}