protected function GroupKernelTestBase::setUp in Group 8
Same name and namespace in other branches
- 2.0.x tests/src/Kernel/GroupKernelTestBase.php \Drupal\Tests\group\Kernel\GroupKernelTestBase::setUp()
Overrides EntityKernelTestBase::setUp
20 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
20 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_content_enabler');
$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());
}