11 calls to OgRole::getRole() in Organic groups 8
- AccessByOgMembershipTest::setUp in tests/
src/ Kernel/ Access/ AccessByOgMembershipTest.php - AccessByOgMembershipTest::testNonMemberRoleMembershipSave in tests/
src/ Kernel/ Access/ AccessByOgMembershipTest.php - Tests exception is thrown when trying to save non-member role.
- ActionTestBase::setUp in tests/
src/ Kernel/ Action/ ActionTestBase.php - GetUserGroupsTest::testGetGroupsByRoles in tests/
src/ Kernel/ Entity/ GetUserGroupsTest.php - Tests retrieval of groups filtered by roles.
- GroupSubscribeFormatterTest::setUp in tests/
src/ Functional/ GroupSubscribeFormatterTest.php - GroupSubscribeFormTest::setUp in tests/
src/ Kernel/ Form/ GroupSubscribeFormTest.php - OgAccessHookTest::setUp in tests/
src/ Kernel/ Access/ OgAccessHookTest.php - OgMembership::getRoles in src/
Entity/ OgMembership.php - Gets all the referenced OG roles.
- OgMembershipCreationTrait::createOgMembership in tests/
src/ Traits/ OgMembershipCreationTrait.php - Creates a test membership.
- OgRoleCacheContextTest::testMemberships in tests/
src/ Kernel/ Cache/ Context/ OgRoleCacheContextTest.php - Tests that the correct cache context key is returned for group members.
- OgRoleTest::testRoleCreate in tests/
src/ Kernel/ Entity/ OgRoleTest.php - Testing OG role creation.