public function RangeFieldInstanceWidgetSettingsTest::transformDataProvider in Range 8
Data provider for testTransform.
File
- tests/
src/ Unit/ Plugin/ migrate/ process/ d7/ RangeFieldInstanceWidgetSettingsTest.php, line 32  
Class
- RangeFieldInstanceWidgetSettingsTest
 - @coversDefaultClass \Drupal\range\Plugin\migrate\process\d7\RangeFieldInstanceWidgetSettings @group range
 
Namespace
Drupal\Tests\range\Unit\Plugin\migrate\process\d7Code
public function transformDataProvider() {
  return [
    'empty labels' => [
      [
        'from' => [
          'label' => '',
        ],
        'to' => [
          'label' => '',
        ],
      ],
      [
        'label' => [
          'from' => '',
          'to' => '',
        ],
        'placeholder' => [
          'from' => '',
          'to' => '',
        ],
      ],
    ],
    'not empty labels' => [
      [
        'from' => [
          'label' => 'FROM',
        ],
        'to' => [
          'label' => 'TO',
        ],
      ],
      [
        'label' => [
          'from' => 'FROM',
          'to' => 'TO',
        ],
        'placeholder' => [
          'from' => '',
          'to' => '',
        ],
      ],
    ],
  ];
}