You are here

public function UbercartFieldStorageGenerateTest::providerValidInputs in Commerce Migrate 3.1.x

Same name and namespace in other branches
  1. 8.2 modules/ubercart/tests/src/Kernel/Plugin/process/UbercartFieldStorageGenerateTest.php \Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1\UbercartFieldStorageGenerateTest::providerValidInputs()
  2. 3.0.x modules/ubercart/tests/src/Kernel/Plugin/process/UbercartFieldStorageGenerateTest.php \Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1\UbercartFieldStorageGenerateTest::providerValidInputs()

Data provider for testValidInputs().

File

modules/ubercart/tests/src/Kernel/Plugin/process/UbercartFieldStorageGenerateTest.php, line 76

Class

UbercartFieldStorageGenerateTest
Tests the UbercartFieldStorageGenerate plugin.

Namespace

Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1

Code

public function providerValidInputs() {
  $tests[0]['value'] = 'node';
  $tests[0]['source_properties'] = [
    'field_name' => 'field_color',
  ];
  $tests[0]['destination_properties'] = [
    'type' => 'text',
    'cardinality' => '1',
    'settings' => [],
  ];
  $tests[0]['expected'] = 'field_color';
  return $tests;
}