You are here

public function ImageFieldTest::testProcessFieldValues in Drupal 8

Same name in this branch
  1. 8 core/modules/image/tests/src/Unit/Plugin/migrate/field/d7/ImageFieldTest.php \Drupal\Tests\image\Unit\Plugin\migrate\field\d7\ImageFieldTest::testProcessFieldValues()
  2. 8 core/modules/file/tests/src/Unit/Plugin/migrate/field/d6/ImageFieldTest.php \Drupal\Tests\file\Unit\Plugin\migrate\field\d6\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\d6

Code

public function testProcessFieldValues() {
  $this->plugin
    ->processFieldValues($this->migration, 'somefieldname', []);
  $expected = [
    'plugin' => 'd6_field_file',
    'source' => 'somefieldname',
  ];
  $this
    ->assertSame($expected, $this->migration
    ->getProcess());
}