protected function GroupKernelTestBase::setUp in Group 2.0.x
Same name and namespace in other branches
- 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
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
File
- tests/
src/ Kernel/ GroupKernelTestBase.php, line 31
Class
- GroupKernelTestBase
- Defines an abstract test base for group kernel tests.
Namespace
Drupal\Tests\group\KernelCode
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());
}