function 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[[api-linebreak]] @group taxonomy
Namespace
Drupal\Tests\taxonomy\Unit\Plugin\migrate\fieldCode
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.