public function SubgroupTest::testCreateSubgroup in Subgroup (Graph) 1.0.x
Tests the addition of a group to a group.
File
- tests/
src/ Kernel/ SubgroupTest.php, line 53
Class
- SubgroupTest
- Tests the behavior of subgroup creators.
Namespace
Drupal\Tests\ggroup\KernelCode
public function testCreateSubgroup() {
list($group, $subGroup) = $this
->addGroup();
$this
->assertNotEmpty($group
->getContentByEntityId('subgroup:' . $this->subGroupType
->id(), $subGroup
->id()), 'Subgroup is group content');
}