protected function LatestRevisionAccessTest::setUp in Group 2.0.x
Same name and namespace in other branches
- 8 tests/src/Kernel/LatestRevisionAccessTest.php \Drupal\Tests\group\Kernel\LatestRevisionAccessTest::setUp()
Overrides GroupKernelTestBase::setUp
File
- tests/
src/ Kernel/ LatestRevisionAccessTest.php, line 49
Class
- LatestRevisionAccessTest
- Tests the latest revision access for groups.
Namespace
Drupal\Tests\group\KernelCode
protected function setUp() {
parent::setUp();
$this
->installConfig([
'content_moderation',
'workflows',
]);
$this
->installEntitySchema('workflow');
$this
->installEntitySchema('content_moderation_state');
$this->accessManager = $this->container
->get('access_manager');
$this->routeProvider = $this->container
->get('router.route_provider');
$this->groupType = $this
->createGroupType([
'id' => 'revision_test',
'creator_membership' => FALSE,
]);
$workflow = $this
->createEditorialWorkflow();
$this
->addEntityTypeAndBundleToWorkflow($workflow, 'group', $this->groupType
->id());
}