function TextFieldTest::testProcessFilteredTextFieldValues
Same name and namespace in other branches
- 8.9.x core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php \Drupal\Tests\text\Unit\Migrate\d6\TextFieldTest::testProcessFilteredTextFieldValues()
- 8.9.x core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php \Drupal\Tests\text\Unit\Plugin\migrate\field\d6\TextFieldTest::testProcessFilteredTextFieldValues()
@covers ::defineValueProcessPipeline
File
-
core/
modules/ text/ tests/ src/ Unit/ Plugin/ migrate/ field/ d6/ TextFieldTest.php, line 52
Class
- TextFieldTest
- @coversDefaultClass <a href="/api/drupal/core%21modules%21text%21src%21Plugin%21migrate%21field%21d6%21TextField.php/class/TextField/9" title="Plugin annotation @MigrateField( id = "d6_text", type_map = { "text" = "text", "text_long" = "text_long", "text_with_summary" = "text_with_summary" }, core = {6}, source_module = "text", destination_module = "text", )" class="local">\Drupal\text\Plugin\migrate\field\d6\TextField</a> @group text
Namespace
Drupal\Tests\text\Unit\Plugin\migrate\field\d6Code
public function testProcessFilteredTextFieldValues($method = 'defineValueProcessPipeline') {
$field_info = [
'widget_type' => 'text_textfield',
];
$this->plugin
->{$method}($this->migration, 'body', $field_info);
$process = $this->migration
->getProcess();
$this->assertSame('sub_process', $process['plugin']);
$this->assertSame('body', $process['source']);
$this->assertSame('value', $process['process']['value']);
// Ensure that filter format IDs will be looked up in the filter format
// migrations.
$lookup = $process['process']['format'][2];
$this->assertSame('migration_lookup', $lookup['plugin']);
$this->assertContains('d6_filter_format', $lookup['migration']);
$this->assertContains('d7_filter_format', $lookup['migration']);
$this->assertSame('format', $lookup['source']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.