You are here

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\Kernel

Code

public function testCreateSubgroup() {
  list($group, $subGroup) = $this
    ->addGroup();
  $this
    ->assertNotEmpty($group
    ->getContentByEntityId('subgroup:' . $this->subGroupType
    ->id(), $subGroup
    ->id()), 'Subgroup is group content');
}