You are here

public function LinkFieldTest::testDefineValueProcessPipeline in Drupal 10

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()
  2. 9 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, 'field_name', []);
  $expected = [
    'plugin' => 'field_link',
    'source' => 'field_name',
  ];
  $this
    ->assertSame($expected, $this->migration
    ->getProcess());
}