public function ArrayBuildTest::testOneDimensionalArrayInput in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/process/ArrayBuildTest.php \Drupal\Tests\migrate\Unit\process\ArrayBuildTest::testOneDimensionalArrayInput()
- 9 core/modules/migrate/tests/src/Unit/process/ArrayBuildTest.php \Drupal\Tests\migrate\Unit\process\ArrayBuildTest::testOneDimensionalArrayInput()
Tests one-dimensional array input.
File
- core/
modules/ migrate/ tests/ src/ Unit/ process/ ArrayBuildTest.php, line 69
Class
- ArrayBuildTest
- @coversDefaultClass \Drupal\migrate\Plugin\migrate\process\ArrayBuild @group migrate
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testOneDimensionalArrayInput() {
$source = [
'foo' => 'bar',
];
$this
->expectException(MigrateException::class);
$this
->expectExceptionMessage('The input should be an array of arrays');
$this->plugin
->transform($source, $this->migrateExecutable, $this->row, 'destination_property');
}