public function CommerceAttributeHandlerSettingTest::providerTestCommerceAttributeTargetType in Commerce Migrate 8.2
Same name and namespace in other branches
- 3.1.x modules/commerce/tests/src/Unit/Plugin/migrate/process/commerce1/CommerceAttributeHandlerSettingTest.php \Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1\CommerceAttributeHandlerSettingTest::providerTestCommerceAttributeTargetType()
- 3.0.x modules/commerce/tests/src/Unit/Plugin/migrate/process/commerce1/CommerceAttributeHandlerSettingTest.php \Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1\CommerceAttributeHandlerSettingTest::providerTestCommerceAttributeTargetType()
Data provider for testCommerceAttributeTargetType().
File
- modules/
commerce/ tests/ src/ Unit/ Plugin/ migrate/ process/ commerce1/ CommerceAttributeHandlerSettingTest.php, line 49
Class
- CommerceAttributeHandlerSettingTest
- Tests the CommerceAttributeTargetType plugin.
Namespace
Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1Code
public function providerTestCommerceAttributeTargetType() {
// Tests when this is an attribute value.
$tests = [
[
[
'commerce_product',
'taxonomy_term_reference',
[
'type' => 'options_select',
],
'product',
],
[
'settings',
],
[
'target_bundles' => [
'product',
],
],
],
];
return $tests;
}