function LinkFieldTest::testDefineValueProcessPipeline

Same name in other branches
  1. 8.9.x core/modules/link/tests/src/Unit/Plugin/migrate/field/d6/LinkFieldTest.php \Drupal\Tests\link\Unit\Plugin\migrate\field\d6\LinkFieldTest::testDefineValueProcessPipeline()
  2. 10 core/modules/link/tests/src/Unit/Plugin/migrate/field/d6/LinkFieldTest.php \Drupal\Tests\link\Unit\Plugin\migrate\field\d6\LinkFieldTest::testDefineValueProcessPipeline()
  3. 11.x 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());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.