public function MigrationPluginsAltererTest::testParagraphsMigrationPrepareProcess in Paragraphs 8
Tests that migration processes are transformed to an array of processors.
@dataProvider providerParagraphsMigrationPrepareProcess @covers ::paragraphsMigrationPrepareProcess
File
- tests/
src/ Unit/ migrate/ MigrationPluginsAltererTest.php, line 49
Class
- MigrationPluginsAltererTest
- Tests the MigrationPluginsAlterer service.
Namespace
Drupal\Tests\paragraphs\Unit\migrateCode
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);
}