protected function ParagraphsCompositeRelationshipTest::setUp in Paragraphs 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ ParagraphsCompositeRelationshipTest.php, line 42
Class
- ParagraphsCompositeRelationshipTest
- Tests the ERR composite relationship upgrade path.
Namespace
Drupal\Tests\paragraphs\KernelCode
protected function setUp() : void {
parent::setUp();
// Create paragraphs and article content types.
$values = [
'type' => 'article',
'name' => 'Article',
];
$node_type = NodeType::create($values);
$node_type
->save();
$this
->installEntitySchema('user');
$this
->installEntitySchema('node');
$this
->installEntitySchema('paragraph');
$this
->installSchema('system', [
'sequences',
]);
$this
->installSchema('node', [
'node_access',
]);
\Drupal::moduleHandler()
->loadInclude('paragraphs', 'install');
}