You are here

protected function GroupRoleSynchronizationTest::setUp in Group 2.0.x

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

Overrides GroupKernelTestBase::setUp

File

tests/src/Kernel/GroupRoleSynchronizationTest.php, line 24

Class

GroupRoleSynchronizationTest
Tests whether group roles are actually synchronized.

Namespace

Drupal\Tests\group\Kernel

Code

protected function setUp() {
  parent::setUp();

  // The sheer functionality of the synchronizer service is tested elsewhere
  // in \Drupal\Tests\group\Unit\GroupRoleSynchronizerTest, so we can rely on
  // it for the sake of this test.
  $this->groupRoleSynchronizer = $this->container
    ->get('group_role.synchronizer');
}