You are here

public function LinkFieldTest::testDefineValueProcessPipeline in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/link/tests/src/Unit/Plugin/migrate/field/d6/LinkFieldTest.php \Drupal\Tests\link\Unit\Plugin\migrate\field\d6\LinkFieldTest::testDefineValueProcessPipeline()

@covers ::defineValueProcessPipeline

File

core/modules/link/tests/src/Unit/Plugin/migrate/field/d6/LinkFieldTest.php, line 49

Class

LinkFieldTest
@coversDefaultClass \Drupal\link\Plugin\migrate\field\d6\LinkField @group link

Namespace

Drupal\Tests\link\Unit\Plugin\migrate\field\d6

Code

public function testDefineValueProcessPipeline($method = 'defineValueProcessPipeline') {
  $this->plugin
    ->{$method}($this->migration, 'somefieldname', []);
  $expected = [
    'plugin' => 'field_link',
    'source' => 'somefieldname',
  ];
  $this
    ->assertSame($expected, $this->migration
    ->getProcess());
}