You are here

protected function ProcessTestCase::setUp in Paragraphs 8

Overrides MigrateProcessTestCase::setUp

2 calls to ProcessTestCase::setUp()
FieldCollectionsFieldInstanceSettingsTest::setUp in tests/src/Unit/migrate/FieldCollectionsFieldInstanceSettingsTest.php
ParagraphsFieldInstanceSettingsTest::setUp in tests/src/Unit/migrate/ParagraphsFieldInstanceSettingsTest.php
3 methods override ProcessTestCase::setUp()
FieldCollectionsFieldInstanceSettingsTest::setUp in tests/src/Unit/migrate/FieldCollectionsFieldInstanceSettingsTest.php
ParagraphsFieldInstanceSettingsTest::setUp in tests/src/Unit/migrate/ParagraphsFieldInstanceSettingsTest.php
ParagraphsProcessOnValueTest::setUp in tests/src/Unit/migrate/ParagraphsProcessOnValueTest.php

File

tests/src/Unit/migrate/ProcessTestCase.php, line 23

Class

ProcessTestCase
Base class for paragraphs process plugin tests.

Namespace

Drupal\Tests\paragraphs\Unit\migrate

Code

protected function setUp() : void {
  parent::setUp();
  $this->entityTypeBundleInfo = $this
    ->getMockBuilder(EntityTypeBundleInfo::class)
    ->disableOriginalConstructor()
    ->getMock();
  $bundles = [
    'paragraph_bundle_one' => [],
    'paragraph_bundle_two' => [],
    'field_collection_bundle_one' => [],
    'field_collection_bundle_two' => [],
    'prexisting_bundle_one' => [],
    'prexisting_bundle_two' => [],
  ];
  $this->entityTypeBundleInfo
    ->expects($this
    ->any())
    ->method('getBundleInfo')
    ->with('paragraph')
    ->willReturn($bundles);
}