You are here

protected function GroupAccessControlHandlerTest::setUp in Group 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Kernel/GroupAccessControlHandlerTest.php \Drupal\Tests\group\Kernel\GroupAccessControlHandlerTest::setUp()

Overrides GroupKernelTestBase::setUp

File

tests/src/Kernel/GroupAccessControlHandlerTest.php, line 30

Class

GroupAccessControlHandlerTest
Tests the general access behavior of group entities.

Namespace

Drupal\Tests\group\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'user',
  ]);
  $this->groupType = $this
    ->createGroupType([
    'id' => 'foo',
    'creator_membership' => FALSE,
  ]);
  $this->group = $this
    ->createGroup([
    'type' => 'foo',
  ]);
}