You are here

public function OgMembershipTest::testGetGroupEntityTypeOnNewMembership in Organic groups 8

Tests getting the group entity type ID of a newly created membership.

@covers ::getGroupEntityType

File

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

Class

OgMembershipTest
Tests the OgMembership entity.

Namespace

Drupal\Tests\og\Kernel\Entity

Code

public function testGetGroupEntityTypeOnNewMembership() {
  $membership = OgMembership::create();
  $this
    ->expectException(\LogicException::class);
  $membership
    ->getGroupEntityType();
}