You are here

public function GroupContentStorageTest::testLoadByContentPluginId in Group 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Kernel/GroupContentStorageTest.php \Drupal\Tests\group\Kernel\GroupContentStorageTest::testLoadByContentPluginId()

Tests the loading of GroupContent entities for an entity.

@covers ::loadByContentPluginId

File

tests/src/Kernel/GroupContentStorageTest.php, line 207

Class

GroupContentStorageTest
Tests the behavior of group content storage handler.

Namespace

Drupal\Tests\group\Kernel

Code

public function testLoadByContentPluginId() {
  $this
    ->createGroup();
  $this
    ->assertCount(1, $this->storage
    ->loadByContentPluginId('group_membership'), 'Managed to load the group creator membership by plugin ID.');
}