You are here

public function OgMembershipTest::testGetGroupBundleOnNewMembership in Organic groups 8

Tests getting the group bundle of a newly created membership.

@covers ::getGroupBundle

File

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

Class

OgMembershipTest
Tests the OgMembership entity.

Namespace

Drupal\Tests\og\Kernel\Entity

Code

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