public function FieldSettingsTest::getSettingsProvider in Drupal 8
Same name and namespace in other branches
- 9 core/modules/field/tests/src/Unit/Plugin/migrate/process/d6/FieldSettingsTest.php \Drupal\Tests\field\Unit\Plugin\migrate\process\d6\FieldSettingsTest::getSettingsProvider()
Provides field settings for testGetSettings().
File
- core/
modules/ field/ tests/ src/ Unit/ Plugin/ migrate/ process/ d6/ FieldSettingsTest.php, line 38
Class
- FieldSettingsTest
- @coversDefaultClass \Drupal\field\Plugin\migrate\process\d6\FieldSettings @group field
Namespace
Drupal\Tests\field\Unit\Plugin\migrate\process\d6Code
public function getSettingsProvider() {
return [
[
'list_integer',
[
'allowed_values' => "1|One\n2|Two\n3",
],
[
'1' => 'One',
'2' => 'Two',
'3' => '3',
],
],
[
'list_string',
[
'allowed_values' => NULL,
],
[],
],
[
'list_float',
[
'allowed_values' => "",
],
[],
],
[
'boolean',
[],
[],
],
];
}