public function TextFieldTest::testProcessBooleanTextImplicitValues in Drupal 8
Same name in this branch
- 8 core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php \Drupal\Tests\text\Unit\Migrate\d6\TextFieldTest::testProcessBooleanTextImplicitValues()
- 8 core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php \Drupal\Tests\text\Unit\Plugin\migrate\field\d6\TextFieldTest::testProcessBooleanTextImplicitValues()
Calls the deprecated processFieldValues() method to test BC.
@covers ::processFieldValues
@depends testBooleanTextImplicitValueProcessPipeline
File
- core/
modules/ text/ tests/ src/ Unit/ Migrate/ d6/ TextFieldTest.php, line 105
Class
- TextFieldTest
- @coversDefaultClass \Drupal\text\Plugin\migrate\field\d6\TextField @group text @group legacy
Namespace
Drupal\Tests\text\Unit\Migrate\d6Code
public function testProcessBooleanTextImplicitValues() {
$info = [
'widget_type' => 'optionwidgets_onoff',
'global_settings' => [
'allowed_values' => "foo\nbar",
],
];
$this->plugin
->processFieldValues($this->migration, 'field', $info);
$expected = [
'value' => [
'plugin' => 'static_map',
'source' => 'value',
'default_value' => 0,
'map' => [
'bar' => 1,
],
],
];
$this
->assertSame($expected, $this->migration
->getProcess()['process']);
}