public function UbercartFieldStorageGenerateTest::providerValidInputs in Commerce Migrate 8.2
Same name and namespace in other branches
- 3.1.x modules/ubercart/tests/src/Kernel/Plugin/process/UbercartFieldStorageGenerateTest.php \Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1\UbercartFieldStorageGenerateTest::providerValidInputs()
- 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\commerce1Code
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;
}