public function FileFieldTest::testDefineValueProcessPipeline in Drupal 8
Same name in this branch
- 8 core/modules/file/tests/src/Unit/Plugin/migrate/field/d6/FileFieldTest.php \Drupal\Tests\file\Unit\Plugin\migrate\field\d6\FileFieldTest::testDefineValueProcessPipeline()
- 8 core/modules/file/tests/src/Unit/Plugin/migrate/field/d7/FileFieldTest.php \Drupal\Tests\file\Unit\Plugin\migrate\field\d7\FileFieldTest::testDefineValueProcessPipeline()
Same name and namespace in other branches
- 9 core/modules/file/tests/src/Unit/Plugin/migrate/field/d7/FileFieldTest.php \Drupal\Tests\file\Unit\Plugin\migrate\field\d7\FileFieldTest::testDefineValueProcessPipeline()
@covers ::defineValueProcessPipeline
1 call to FileFieldTest::testDefineValueProcessPipeline()
- FileFieldLegacyTest::testDefineValueProcessPipeline in core/
modules/ file/ tests/ src/ Unit/ Plugin/ migrate/ field/ d7/ FileFieldLegacyTest.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 FileFieldTest::testDefineValueProcessPipeline()
- FileFieldLegacyTest::testDefineValueProcessPipeline in core/
modules/ file/ tests/ src/ Unit/ Plugin/ migrate/ field/ d7/ FileFieldLegacyTest.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/ file/ tests/ src/ Unit/ Plugin/ migrate/ field/ d7/ FileFieldTest.php, line 49
Class
- FileFieldTest
- @coversDefaultClass \Drupal\file\Plugin\migrate\field\d7\FileField @group file
Namespace
Drupal\Tests\file\Unit\Plugin\migrate\field\d7Code
public function testDefineValueProcessPipeline($method = 'defineValueProcessPipeline') {
$this->plugin
->{$method}($this->migration, 'somefieldname', []);
$expected = [
'plugin' => 'sub_process',
'source' => 'somefieldname',
'process' => [
'target_id' => 'fid',
'display' => 'display',
'description' => 'description',
],
];
$this
->assertSame($expected, $this->migration
->getProcess());
}