public function TaxonomyTermReferenceFieldTest::testDefineValueProcessPipeline in Drupal 10
Same name and namespace in other branches
- 8 core/modules/taxonomy/tests/src/Unit/Plugin/migrate/field/TaxonomyTermReferenceFieldTest.php \Drupal\Tests\taxonomy\Unit\Plugin\migrate\field\TaxonomyTermReferenceFieldTest::testDefineValueProcessPipeline()
- 9 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\fieldCode
public function testDefineValueProcessPipeline($method = 'defineValueProcessPipeline') {
$this->plugin
->{$method}($this->migration, 'field_name', []);
$expected = [
'plugin' => 'sub_process',
'source' => 'field_name',
'process' => [
'target_id' => 'tid',
],
];
$this
->assertSame($expected, $this->migration
->getProcess());
}