protected function GroupTest::setUp in farmOS 2.x
Same name in this branch
- 2.x modules/asset/group/tests/src/Functional/GroupTest.php \Drupal\Tests\farm_group\Functional\GroupTest::setUp()
- 2.x modules/asset/group/tests/src/Kernel/GroupTest.php \Drupal\Tests\farm_group\Kernel\GroupTest::setUp()
Overrides KernelTestBase::setUp
File
- modules/
asset/ group/ tests/ src/ Kernel/ GroupTest.php, line 59
Class
- GroupTest
- Tests for farmOS group membership logic.
Namespace
Drupal\Tests\farm_group\KernelCode
protected function setUp() : void {
parent::setUp();
$this->groupMembership = \Drupal::service('group.membership');
$this->assetLocation = \Drupal::service('asset.location');
$this->logLocation = \Drupal::service('log.location');
$this
->installEntitySchema('asset');
$this
->installEntitySchema('log');
$this
->installEntitySchema('user');
$this
->installConfig([
'farm_group',
'farm_group_test',
]);
}