function ImageCckTest::testProcessCckFieldValues
@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());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.