function WorkspaceCRUDTest::setUp
Same name in other branches
- 9 core/modules/workspaces/tests/src/Kernel/WorkspaceCRUDTest.php \Drupal\Tests\workspaces\Kernel\WorkspaceCRUDTest::setUp()
- 8.9.x core/modules/workspaces/tests/src/Kernel/WorkspaceCRUDTest.php \Drupal\Tests\workspaces\Kernel\WorkspaceCRUDTest::setUp()
- 11.x core/modules/workspaces/tests/src/Kernel/WorkspaceCRUDTest.php \Drupal\Tests\workspaces\Kernel\WorkspaceCRUDTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceCRUDTest.php, line 63
Class
- WorkspaceCRUDTest
- Tests CRUD operations for workspaces.
Namespace
Drupal\Tests\workspaces\KernelCode
protected function setUp() : void {
parent::setUp();
$this->setUpCurrentUser();
$this->installSchema('node', [
'node_access',
]);
$this->installEntitySchema('workspace');
$this->installSchema('workspaces', [
'workspace_association',
]);
$this->installEntitySchema('node');
$this->installConfig([
'filter',
'node',
'system',
]);
$this->createContentType([
'type' => 'page',
]);
$this->entityTypeManager = \Drupal::entityTypeManager();
$this->state = \Drupal::state();
$this->workspaceManager = \Drupal::service('workspaces.manager');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.