You are here

protected function ParagraphsReplicateTest::setUp in Paragraphs 8

Overrides KernelTestBase::setUp

File

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