You are here

public function OgMembershipTest::testGetGroupEntityType in Organic groups 8

Tests getting the entity type ID of the group associated with a membership.

@covers ::getGroupEntityType

File

tests/src/Kernel/Entity/OgMembershipTest.php, line 692

Class

OgMembershipTest
Tests the OgMembership entity.

Namespace

Drupal\Tests\og\Kernel\Entity

Code

public function testGetGroupEntityType() {
  $membership = OgMembership::create();
  $membership
    ->setGroup($this->group);
  $this
    ->assertEquals($this->group
    ->getEntityTypeId(), $membership
    ->getGroupEntityType());
}