13 calls to Og::createMembership() in Organic groups 8
- GroupLevelAccessTest::createUserWithOgRole in tests/
src/ Kernel/ Access/ GroupLevelAccessTest.php - Creates a test user and assigns it a membership with the given role.
- GroupLevelAccessTest::setupUserAccessArbitraryPermissions in tests/
src/ Kernel/ Access/ GroupLevelAccessTest.php - Sets up a matrix of users and roles with arbitrary permissions.
- GroupLevelAccessTest::testUserAccessArbitraryPermissions in tests/
src/ Kernel/ Access/ GroupLevelAccessTest.php - Test access to an arbitrary permission.
- OgMembershipTest::testGetSetState in tests/
src/ Kernel/ Entity/ OgMembershipTest.php - Tests boolean check for states.
- OgMembershipTest::testIsOwner in tests/
src/ Kernel/ Entity/ OgMembershipTest.php - Tests that the membership can return if it belongs to the group owner.
- OgMembershipTest::testMemberRole in tests/
src/ Kernel/ Entity/ OgMembershipTest.php - Tests that membership has "member" role when roles are retrieved.
- OgMembershipTest::testMembershipStaticCache in tests/
src/ Kernel/ Entity/ OgMembershipTest.php - Tests getting an ogMembership from the static cache.
- OgMembershipTest::testSaveExistingMembership in tests/
src/ Kernel/ Entity/ OgMembershipTest.php - Tests saving an existing membership.
- OgMembershipTest::testSaveSameMembershipTwice in tests/
src/ Kernel/ Entity/ OgMembershipTest.php - Tests re-saving a membership.
- OgMembershipTest::testSetNonValidGroupException in tests/
src/ Kernel/ Entity/ OgMembershipTest.php - Tests saving a membership with a non group entity.
- og_entity_insert in ./
og.module - Implements hook_entity_insert().
- og_test_entity_insert in tests/
modules/ og_test/ og_test.module - Implements hook_entity_insert().
- SubscriptionController::subscribe in src/
Controller/ SubscriptionController.php - Subscribe a user to group.