function ImageFieldTest::testProcessFieldValues
Same name in this branch
- 8.9.x core/modules/image/tests/src/Unit/Plugin/migrate/field/d7/ImageFieldTest.php \Drupal\Tests\image\Unit\Plugin\migrate\field\d7\ImageFieldTest::testProcessFieldValues()
@covers ::processFieldValues @expectedDeprecation ImageField is deprecated in Drupal 8.5.x and will be removed before Drupal 9.0.x. Use \Drupal\image\Plugin\migrate\field\d6\ImageField instead. See https://www.drupal.org/node/2936061.
File
-
core/
modules/ file/ tests/ src/ Unit/ Plugin/ migrate/ field/ d6/ ImageFieldTest.php, line 50
Class
- ImageFieldTest
- @coversDefaultClass \Drupal\file\Plugin\migrate\field\d6\ImageField @group file @group legacy
Namespace
Drupal\Tests\file\Unit\Plugin\migrate\field\d6Code
public function testProcessFieldValues() {
$this->plugin
->processFieldValues($this->migration, 'somefieldname', []);
$expected = [
'plugin' => 'd6_field_file',
'source' => 'somefieldname',
];
$this->assertSame($expected, $this->migration
->getProcess());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.