Same name in other branches
- 8.x-1.x tests/src/Kernel/EntityCloneAccessTest.php \Drupal\Tests\entity_clone\Kernel\EntityCloneAccessTest::setUp()
File
-
tests/
src/ Kernel/ EntityCloneAccessTest.php, line 34
Class
- EntityCloneAccessTest
- Tests entity clone access.
Namespace
Drupal\Tests\entity_clone\KernelCode
protected function setUp() : void {
parent::setUp();
$this->installEntitySchema('node');
$this->installEntitySchema('user');
$this->installSchema('system', [
'sequences',
]);
$this->installSchema('node', [
'node_access',
]);
$this->installConfig([
'node',
'user',
'system',
'entity_clone',
]);
// Call the user module install process that creates the anonymous user
// and user 1.
$this->container
->get('module_handler')
->loadInclude('user', 'install');
user_install();
$node_type = NodeType::create([
'type' => 'page',
'id' => 'page',
]);
$node_type->save();
}