You are here

public function TaxonomyTermReferenceFieldTest::testDefineValueProcessPipeline in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/tests/src/Unit/Plugin/migrate/field/TaxonomyTermReferenceFieldTest.php \Drupal\Tests\taxonomy\Unit\Plugin\migrate\field\TaxonomyTermReferenceFieldTest::testDefineValueProcessPipeline()
  2. 10 core/modules/taxonomy/tests/src/Unit/Plugin/migrate/field/TaxonomyTermReferenceFieldTest.php \Drupal\Tests\taxonomy\Unit\Plugin\migrate\field\TaxonomyTermReferenceFieldTest::testDefineValueProcessPipeline()

@covers ::defineValueProcessPipeline

File

core/modules/taxonomy/tests/src/Unit/Plugin/migrate/field/TaxonomyTermReferenceFieldTest.php, line 49

Class

TaxonomyTermReferenceFieldTest
@coversDefaultClass \Drupal\taxonomy\Plugin\migrate\field\TaxonomyTermReference @group taxonomy

Namespace

Drupal\Tests\taxonomy\Unit\Plugin\migrate\field

Code

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