protected function ProcessTestCase::setUp

3 methods override ProcessTestCase::setUp()

File

paragraphs/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);
}