public function GroupContentStorageTest::testLoadByUnsavedGroup in Group 8
Same name and namespace in other branches
- 2.0.x tests/src/Kernel/GroupContentStorageTest.php \Drupal\Tests\group\Kernel\GroupContentStorageTest::testLoadByUnsavedGroup()
Tests the loading of GroupContent entities for an unsaved group.
@covers ::loadByGroup
File
- tests/
src/ Kernel/ GroupContentStorageTest.php, line 162
Class
- GroupContentStorageTest
- Tests the behavior of group content storage handler.
Namespace
Drupal\Tests\group\KernelCode
public function testLoadByUnsavedGroup() {
$group = $this
->createUnsavedGroup();
$this
->expectException(EntityStorageException::class);
$this
->expectExceptionMessage('Cannot load GroupContent entities for an unsaved group.');
$this->storage
->loadByGroup($group);
}