protected function ParagraphsReplicateTest::setUp

File

paragraphs/tests/src/Kernel/ParagraphsReplicateTest.php, line 40

Class

ParagraphsReplicateTest
Tests the replication functionality provided by Replicate module.

Namespace

Drupal\Tests\paragraphs\Kernel

Code

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');
}