public function UbercartFieldStorageGenerateTest::providerInvalidInputs in Commerce Migrate 3.1.x
Same name and namespace in other branches
- 8.2 modules/ubercart/tests/src/Kernel/Plugin/process/UbercartFieldStorageGenerateTest.php \Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1\UbercartFieldStorageGenerateTest::providerInvalidInputs()
- 3.0.x modules/ubercart/tests/src/Kernel/Plugin/process/UbercartFieldStorageGenerateTest.php \Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1\UbercartFieldStorageGenerateTest::providerInvalidInputs()
Data provider for testProviderInvalidInputs().
File
- modules/
ubercart/ tests/ src/ Kernel/ Plugin/ process/ UbercartFieldStorageGenerateTest.php, line 117
Class
- UbercartFieldStorageGenerateTest
- Tests the UbercartFieldStorageGenerate plugin.
Namespace
Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1Code
public function providerInvalidInputs() {
// Unknown entity type.
$tests[0]['value'] = 'unknown';
$tests[0]['source_properties'] = [
'field_name' => 'field_color',
];
$tests[0]['destination_properties'] = [
'type' => 'text',
'cardinality' => '1',
'settings' => [],
];
$tests[0]['expected'] = FALSE;
// Unknown field type.
$tests[1]['value'] = 'node';
$tests[1]['source_properties'] = [
'field_name' => 'field_color',
];
$tests[1]['destination_properties'] = [
'type' => 'unknown',
'cardinality' => '1',
'settings' => [],
];
$tests[1]['expected'] = FALSE;
return $tests;
}