You are here

public function LinkFieldTest::testDefineValueProcessPipeline in Drupal 8

Same name and namespace in other branches
  1. 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

1 call to LinkFieldTest::testDefineValueProcessPipeline()
LinkFieldLegacyTest::testDefineValueProcessPipeline in core/modules/link/tests/src/Unit/Plugin/migrate/field/d6/LinkFieldLegacyTest.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 LinkFieldTest::testDefineValueProcessPipeline()
LinkFieldLegacyTest::testDefineValueProcessPipeline in core/modules/link/tests/src/Unit/Plugin/migrate/field/d6/LinkFieldLegacyTest.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/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());
}