public function MigrationPluginsAltererTest::testParagraphsMigrationPrepareProcess

Tests that migration processes are transformed to an array of processors.

@dataProvider providerParagraphsMigrationPrepareProcess @covers ::paragraphsMigrationPrepareProcess

File

paragraphs/tests/src/Unit/migrate/MigrationPluginsAltererTest.php, line 49

Class

MigrationPluginsAltererTest
Tests the MigrationPluginsAlterer service.

Namespace

Drupal\Tests\paragraphs\Unit\migrate

Code

public function testParagraphsMigrationPrepareProcess(array $input, array $expected) {
  [
    'process' => $process,
    'property' => $property,
  ] = $input;
  $success = $this->paragraphsMigrationPluginsAlterer
    ->paragraphsMigrationPrepareProcess($process, $property);
  $this
    ->assertSame($expected['return'], $success);
  $this
    ->assertEquals($expected['process'], $process);
}