public function RangeFieldInstanceSettingsTest::transformDataProvider in Range 8
Same name in this branch
- 8 tests/src/Unit/Plugin/migrate/process/d6/RangeFieldInstanceSettingsTest.php \Drupal\Tests\range\Unit\Plugin\migrate\process\d6\RangeFieldInstanceSettingsTest::transformDataProvider()
- 8 tests/src/Unit/Plugin/migrate/process/d7/RangeFieldInstanceSettingsTest.php \Drupal\Tests\range\Unit\Plugin\migrate\process\d7\RangeFieldInstanceSettingsTest::transformDataProvider()
Data provider for testTransform.
File
- tests/
src/ Unit/ Plugin/ migrate/ process/ d6/ RangeFieldInstanceSettingsTest.php, line 32
Class
- RangeFieldInstanceSettingsTest
- @coversDefaultClass \Drupal\range\Plugin\migrate\process\d6\RangeFieldInstanceSettings @group range
Namespace
Drupal\Tests\range\Unit\Plugin\migrate\process\d6Code
public function transformDataProvider() {
return [
'min/max and prefix/suffix are set' => [
[
'min' => 5,
'max' => 50,
'prefix' => 'PREFIX',
'suffix' => 'SUFFIX',
],
[
'min' => 5,
'max' => 50,
'field' => [
'prefix' => 'PREFIX',
'suffix' => 'SUFFIX',
],
],
],
'min/max set to infinity and no prefix/suffix' => [
[
'min' => '<',
'max' => '>',
'prefix' => '',
'suffix' => '',
],
[
'min' => NULL,
'max' => NULL,
'field' => [
'prefix' => '',
'suffix' => '',
],
],
],
'extra settings present' => [
[
'min' => -5.5,
'max' => 5.5,
'prefix' => '',
'suffix' => '',
'allowed_values_php' => '',
],
[
'min' => -5.5,
'max' => 5.5,
'field' => [
'prefix' => '',
'suffix' => '',
],
],
],
];
}