public function CommerceAttributeHandlerSettingTest::providerTestException in Commerce Migrate 3.1.x
Same name and namespace in other branches
- 8.2 modules/commerce/tests/src/Unit/Plugin/migrate/process/commerce1/CommerceAttributeHandlerSettingTest.php \Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1\CommerceAttributeHandlerSettingTest::providerTestException()
- 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::providerTestException()
Data provider for testException().
File
- modules/
commerce/ tests/ src/ Unit/ Plugin/ migrate/ process/ commerce1/ CommerceAttributeHandlerSettingTest.php, line 88
Class
- CommerceAttributeHandlerSettingTest
- Tests the CommerceAttributeTargetType plugin.
Namespace
Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1Code
public function providerTestException() {
// Tests when this is an attribute value.
$tests = [];
$tests = [
// Not a commerce product entity type.
[
'node',
'taxonomy_term_reference',
[
'type' => 'options_select',
],
[],
],
// Not a taxonomy term reference type.
[
'commerce_product',
'file',
[
'type' => 'options_select',
],
[],
],
// Not an options select widget type.
[
'commerce_product',
'taxonomy_term_reference',
[
'type' => 'text',
],
[],
],
// Not a taxonomy term reference type.
[
NULL,
NULL,
NULL,
NULL,
],
];
return $tests;
}