You are here

public function GroupMembershipManagerTest::testGetGroupMembershipsByRoleNames in Organic groups 8

Tests retrieval of group memberships filtered by role names.

@covers ::getGroupMembershipsByRoleNames

File

tests/src/Kernel/Entity/GroupMembershipManagerTest.php, line 372

Class

GroupMembershipManagerTest
Tests retrieving groups associated with a given group content.

Namespace

Drupal\Tests\og\Kernel\Entity

Code

public function testGetGroupMembershipsByRoleNames() {
  $retrieve_membership_owner_id = function (OgMembershipInterface $membership) {
    return $membership
      ->getOwnerId();
  };
  $this
    ->doTestGetGroupMembershipsByRoleNames('getGroupMembershipsByRoleNames', $retrieve_membership_owner_id);
}