public function ImageCckTest::testProcessCckFieldValues in Drupal 8
@covers ::processCckFieldValues
File
- core/
modules/ file/ tests/ src/ Unit/ Plugin/ migrate/ cckfield/ d7/ ImageCckTest.php, line 49
Class
- ImageCckTest
- @coversDefaultClass \Drupal\file\Plugin\migrate\cckfield\d7\ImageField @group file @group legacy
Namespace
Drupal\Tests\file\Unit\Plugin\migrate\cckfield\d7Code
public function testProcessCckFieldValues() {
$this->plugin
->processCckFieldValues($this->migration, 'somefieldname', []);
$expected = [
'plugin' => 'sub_process',
'source' => 'somefieldname',
'process' => [
'target_id' => 'fid',
'alt' => 'alt',
'title' => 'title',
'width' => 'width',
'height' => 'height',
],
];
$this
->assertSame($expected, $this->migration
->getProcess());
}