function TaxonomyTermReferenceFieldTest::testDefineValueProcessPipeline
Same name in other branches
- 9 core/modules/taxonomy/tests/src/Unit/Plugin/migrate/field/TaxonomyTermReferenceFieldTest.php \Drupal\Tests\taxonomy\Unit\Plugin\migrate\field\TaxonomyTermReferenceFieldTest::testDefineValueProcessPipeline()
- 10 core/modules/taxonomy/tests/src/Unit/Plugin/migrate/field/TaxonomyTermReferenceFieldTest.php \Drupal\Tests\taxonomy\Unit\Plugin\migrate\field\TaxonomyTermReferenceFieldTest::testDefineValueProcessPipeline()
- 11.x core/modules/taxonomy/tests/src/Unit/Plugin/migrate/field/TaxonomyTermReferenceFieldTest.php \Drupal\Tests\taxonomy\Unit\Plugin\migrate\field\TaxonomyTermReferenceFieldTest::testDefineValueProcessPipeline()
@covers ::defineValueProcessPipeline
1 call to TaxonomyTermReferenceFieldTest::testDefineValueProcessPipeline()
- TaxonomyTermReferenceFieldLegacyTest::testDefineValueProcessPipeline in core/
modules/ taxonomy/ tests/ src/ Unit/ Plugin/ migrate/ field/ TaxonomyTermReferenceFieldLegacyTest.php - @expectedDeprecation Deprecated in Drupal 8.6.0, to be removed before Drupal 9.0.0. Use defineValueProcessPipeline() instead. See https://www.drupal.org/node/2944598.
1 method overrides TaxonomyTermReferenceFieldTest::testDefineValueProcessPipeline()
- TaxonomyTermReferenceFieldLegacyTest::testDefineValueProcessPipeline in core/
modules/ taxonomy/ tests/ src/ Unit/ Plugin/ migrate/ field/ TaxonomyTermReferenceFieldLegacyTest.php - @expectedDeprecation Deprecated in Drupal 8.6.0, to be removed before Drupal 9.0.0. Use defineValueProcessPipeline() instead. See https://www.drupal.org/node/2944598.
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, 'somefieldname', []);
$expected = [
'plugin' => 'sub_process',
'source' => 'somefieldname',
'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.