You are here

protected function GroupKernelTestBase::setUp in Group 2.0.x

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

Overrides EntityKernelTestBase::setUp

21 calls to GroupKernelTestBase::setUp()
ChainGroupPermissionCalculatorTest::setUp in tests/src/Kernel/ChainGroupPermissionCalculatorTest.php
EntityAccessComplexTest::setUp in tests/src/Kernel/EntityAccessComplexTest.php
EntityAccessTest::setUp in tests/src/Kernel/EntityAccessTest.php
EntityQueryAlterCacheabilityTest::setUp in tests/src/Kernel/EntityQueryAlterCacheabilityTest.php
EntityQueryAlterComplexTest::setUp in tests/src/Kernel/EntityQueryAlterComplexTest.php

... See full list

21 methods override GroupKernelTestBase::setUp()
ChainGroupPermissionCalculatorTest::setUp in tests/src/Kernel/ChainGroupPermissionCalculatorTest.php
EntityAccessComplexTest::setUp in tests/src/Kernel/EntityAccessComplexTest.php
EntityAccessTest::setUp in tests/src/Kernel/EntityAccessTest.php
EntityQueryAlterCacheabilityTest::setUp in tests/src/Kernel/EntityQueryAlterCacheabilityTest.php
EntityQueryAlterComplexTest::setUp in tests/src/Kernel/EntityQueryAlterComplexTest.php

... See full list

File

tests/src/Kernel/GroupKernelTestBase.php, line 31

Class

GroupKernelTestBase
Defines an abstract test base for group kernel tests.

Namespace

Drupal\Tests\group\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->pluginManager = $this->container
    ->get('plugin.manager.group_relation');
  $this
    ->installEntitySchema('group');
  $this
    ->installEntitySchema('group_content');
  $this
    ->installConfig([
    'group',
    'group_test_config',
  ]);

  // Make sure we do not use user 1.
  $this
    ->createUser();
  $this
    ->setCurrentUser($this
    ->createUser());
}