You are here

protected function SubgroupTest::setUp in Subgroup (Graph) 1.0.x

Overrides GroupKernelTestBase::setUp

File

tests/src/Kernel/SubgroupTest.php, line 38

Class

SubgroupTest
Tests the behavior of subgroup creators.

Namespace

Drupal\Tests\ggroup\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'ggroup_test_config',
  ]);
  $this
    ->installSchema('ggroup', 'group_graph');
  $this->entityTypeManager = $this->container
    ->get('entity_type.manager');
  $this->groupType = $this->entityTypeManager
    ->getStorage('group_type')
    ->load('default');
  $this->subGroupType = $this->entityTypeManager
    ->getStorage('group_type')
    ->load('subgroup');
}