function FileFieldTest::testDefineValueProcessPipeline
Same name in this branch
- 9 core/modules/file/tests/src/Unit/Plugin/migrate/field/d6/FileFieldTest.php \Drupal\Tests\file\Unit\Plugin\migrate\field\d6\FileFieldTest::testDefineValueProcessPipeline()
Same name in other branches
- 8.9.x core/modules/file/tests/src/Unit/Plugin/migrate/field/d6/FileFieldTest.php \Drupal\Tests\file\Unit\Plugin\migrate\field\d6\FileFieldTest::testDefineValueProcessPipeline()
- 8.9.x core/modules/file/tests/src/Unit/Plugin/migrate/field/d7/FileFieldTest.php \Drupal\Tests\file\Unit\Plugin\migrate\field\d7\FileFieldTest::testDefineValueProcessPipeline()
- 10 core/modules/file/tests/src/Unit/Plugin/migrate/field/d6/FileFieldTest.php \Drupal\Tests\file\Unit\Plugin\migrate\field\d6\FileFieldTest::testDefineValueProcessPipeline()
- 10 core/modules/file/tests/src/Unit/Plugin/migrate/field/d7/FileFieldTest.php \Drupal\Tests\file\Unit\Plugin\migrate\field\d7\FileFieldTest::testDefineValueProcessPipeline()
- 11.x core/modules/file/tests/src/Unit/Plugin/migrate/field/d6/FileFieldTest.php \Drupal\Tests\file\Unit\Plugin\migrate\field\d6\FileFieldTest::testDefineValueProcessPipeline()
- 11.x core/modules/file/tests/src/Unit/Plugin/migrate/field/d7/FileFieldTest.php \Drupal\Tests\file\Unit\Plugin\migrate\field\d7\FileFieldTest::testDefineValueProcessPipeline()
@covers ::defineValueProcessPipeline
File
-
core/
modules/ file/ tests/ src/ Unit/ Plugin/ migrate/ field/ d7/ FileFieldTest.php, line 51
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, 'field_name', []);
$expected = [
'plugin' => 'sub_process',
'source' => 'field_name',
'process' => [
'target_id' => 'fid',
'display' => 'display',
'description' => 'description',
],
];
$this->assertSame($expected, $this->migration
->getProcess());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.