function ImageFieldTest::testDefineValueProcessPipeline

@runInSeparateProcess @covers ::defineValueProcessPipeline @expectedDeprecation ImageField is deprecated in Drupal 8.5.x and will be removed before Drupal 9.0.x. Use \Drupal\image\Plugin\migrate\field\d7\ImageField instead. See https://www.drupal.org/node/2936061.

1 call to ImageFieldTest::testDefineValueProcessPipeline()
ImageFieldLegacyTest::testDefineValueProcessPipeline in core/modules/file/tests/src/Unit/Plugin/migrate/field/d7/ImageFieldLegacyTest.php
@expectedDeprecation Deprecated in Drupal 8.6.0, to be removed before Drupal 9.0.0. Use defineValueProcessPipeline() instead. See https://www.drupal.org/node/2944598.
1 method overrides ImageFieldTest::testDefineValueProcessPipeline()
ImageFieldLegacyTest::testDefineValueProcessPipeline in core/modules/file/tests/src/Unit/Plugin/migrate/field/d7/ImageFieldLegacyTest.php
@expectedDeprecation Deprecated in Drupal 8.6.0, to be removed before Drupal 9.0.0. Use defineValueProcessPipeline() instead. See https://www.drupal.org/node/2944598.

File

core/modules/file/tests/src/Unit/Plugin/migrate/field/d7/ImageFieldTest.php, line 51

Class

ImageFieldTest
@coversDefaultClass \Drupal\file\Plugin\migrate\field\d7\ImageField @group file @group legacy

Namespace

Drupal\Tests\file\Unit\Plugin\migrate\field\d7

Code

public function testDefineValueProcessPipeline($method = 'defineValueProcessPipeline') {
    $this->plugin
        ->{$method}($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.