You are here

protected function GroupRoleStorageTest::setUp in Group 2.0.x

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

Overrides GroupKernelTestBase::setUp

File

tests/src/Kernel/GroupRoleStorageTest.php, line 47

Class

GroupRoleStorageTest
Tests the behavior of group role storage handler.

Namespace

Drupal\Tests\group\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->storage = $this->entityTypeManager
    ->getStorage('group_role');
  $this->group = $this
    ->createGroup();
  $this->account = $this
    ->createUser();
  $this->groupRoleSynchronizer = $this->container
    ->get('group_role.synchronizer');
}