protected function WorkspaceMergerTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/workspaces/tests/src/Kernel/WorkspaceMergerTest.php \Drupal\Tests\workspaces\Kernel\WorkspaceMergerTest::setUp()
- 10 core/modules/workspaces/tests/src/Kernel/WorkspaceMergerTest.php \Drupal\Tests\workspaces\Kernel\WorkspaceMergerTest::setUp()
Overrides KernelTestBase::setUp
File
- core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceMergerTest.php, line 54
Class
- WorkspaceMergerTest
- Tests workspace merging.
Namespace
Drupal\Tests\workspaces\KernelCode
protected function setUp() {
parent::setUp();
$this->entityTypeManager = \Drupal::entityTypeManager();
$this
->installEntitySchema('node');
$this
->installEntitySchema('user');
$this
->installConfig([
'filter',
'node',
'system',
]);
$this
->installSchema('system', [
'key_value_expire',
'sequences',
]);
$this
->installSchema('node', [
'node_access',
]);
$this
->createContentType([
'type' => 'article',
]);
$this
->setCurrentUser($this
->createUser([
'administer nodes',
]));
}