You are here

21 calls to OgMembership::create() in Organic groups 8

AccessByOgMembershipTest::testNonMemberRoleMembershipSave in tests/src/Kernel/Access/AccessByOgMembershipTest.php
Tests exception is thrown when trying to save non-member role.
GroupSubscribeFormTest::testIsStateActive in tests/src/Kernel/Form/GroupSubscribeFormTest.php
Tests subscribe confirmation related text.
MembershipManager::createMembership in src/MembershipManager.php
Creates an OG membership.
OgMembershipCreationTrait::createOgMembership in tests/src/Traits/OgMembershipCreationTrait.php
Creates a test membership.
OgMembershipTest::testGetGroup in tests/src/Kernel/Entity/OgMembershipTest.php
Tests getting the group that is associated with a membership.
OgMembershipTest::testGetGroupBundle in tests/src/Kernel/Entity/OgMembershipTest.php
Tests getting the bundle of the group that is associated with a membership.
OgMembershipTest::testGetGroupBundleOnNewMembership in tests/src/Kernel/Entity/OgMembershipTest.php
Tests getting the group bundle of a newly created membership.
OgMembershipTest::testGetGroupEntityType in tests/src/Kernel/Entity/OgMembershipTest.php
Tests getting the entity type ID of the group associated with a membership.
OgMembershipTest::testGetGroupEntityTypeOnNewMembership in tests/src/Kernel/Entity/OgMembershipTest.php
Tests getting the group entity type ID of a newly created membership.
OgMembershipTest::testGetGroupId in tests/src/Kernel/Entity/OgMembershipTest.php
Tests getting the ID of the group associated with a membership.
OgMembershipTest::testGetGroupIdOnNewMembership in tests/src/Kernel/Entity/OgMembershipTest.php
Tests getting the group ID of a newly created membership.
OgMembershipTest::testGetGroupOnNewMembership in tests/src/Kernel/Entity/OgMembershipTest.php
Tests getting the group from a new membership.
OgMembershipTest::testGetOwnerIdOnNewMembership in tests/src/Kernel/Entity/OgMembershipTest.php
Tests getting the owner ID of a newly created membership.
OgMembershipTest::testGetOwnerOnNewMembership in tests/src/Kernel/Entity/OgMembershipTest.php
Tests getting the owner of a newly created membership.
OgMembershipTest::testGetRolesFromMembershipWithoutGroup in tests/src/Kernel/Entity/OgMembershipTest.php
Tests that we can retrieve the (empty) roles list from a new membership.
OgMembershipTest::testGetSetCreatedTime in tests/src/Kernel/Entity/OgMembershipTest.php
Tests getting and setting the creation time.
OgMembershipTest::testGetSetOwner in tests/src/Kernel/Entity/OgMembershipTest.php
Tests getting and setting owners on OgMemberships.
OgMembershipTest::testGetSetOwnerId in tests/src/Kernel/Entity/OgMembershipTest.php
Tests getting and setting owners by ID on OgMemberships.
OgMembershipTest::testIsRoleValidException in tests/src/Kernel/Entity/OgMembershipTest.php
Tests the exception thrown if the validity of a role cannot be established.
OgMembershipTest::testSetNoGroupException in tests/src/Kernel/Entity/OgMembershipTest.php
Tests exceptions are thrown when trying to save a membership with no group.
OgMembershipTest::testSetNoUserException in tests/src/Kernel/Entity/OgMembershipTest.php
Tests exceptions are thrown when trying to save a membership with no user.