function TaxonomyTermReferenceFieldTest::testDefineValueProcessPipeline

Same name in other branches
  1. 9 core/modules/taxonomy/tests/src/Unit/Plugin/migrate/field/TaxonomyTermReferenceFieldTest.php \Drupal\Tests\taxonomy\Unit\Plugin\migrate\field\TaxonomyTermReferenceFieldTest::testDefineValueProcessPipeline()
  2. 8.9.x core/modules/taxonomy/tests/src/Unit/Plugin/migrate/field/TaxonomyTermReferenceFieldTest.php \Drupal\Tests\taxonomy\Unit\Plugin\migrate\field\TaxonomyTermReferenceFieldTest::testDefineValueProcessPipeline()
  3. 11.x 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 53

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') : void {
    $this->plugin
        ->{$method}($this->migration, 'field_name', []);
    $expected = [
        'plugin' => 'sub_process',
        'source' => 'field_name',
        'process' => [
            'target_id' => 'tid',
        ],
    ];
    $this->assertSame($expected, $this->migration
        ->getProcess());
}

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