You are here

public function GroupContentStorageTest::testLoadByGroup in Group 2.0.x

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

Tests the loading of GroupContent entities for a group.

@covers ::loadByGroup

File

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

Class

GroupContentStorageTest
Tests the behavior of group content storage handler.

Namespace

Drupal\Tests\group\Kernel

Code

public function testLoadByGroup() {
  $group = $this
    ->createGroup();
  $this
    ->assertCount(1, $this->storage
    ->loadByGroup($group), 'Managed to load the group creator membership by group.');
}