public function AttributeFieldTest::testAttribute in Commerce Migrate 3.1.x
Same name in this branch
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc7/AttributeFieldTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\AttributeFieldTest::testAttribute()
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc6/AttributeFieldTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\AttributeFieldTest::testAttribute()
Same name and namespace in other branches
- 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc6/AttributeFieldTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\AttributeFieldTest::testAttribute()
- 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc6/AttributeFieldTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\AttributeFieldTest::testAttribute()
Test attribute field storage migration.
File
- modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc6/ AttributeFieldTest.php, line 74
Class
- AttributeFieldTest
- Tests attribute field storage migration.
Namespace
Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6Code
public function testAttribute() {
$dependencies = [
'module' => [
'commerce_product',
],
];
$this
->assertEntity('commerce_product_variation.attribute_design', 'entity_reference', TRUE, 1, $dependencies);
$this
->assertEntity('commerce_product_variation.attribute_color', 'entity_reference', TRUE, -1, $dependencies);
$this
->assertEntity('commerce_product_variation.attribute_model_size_attribute', 'entity_reference', TRUE, 1, $dependencies);
$this
->assertEntity('commerce_product_variation.attribute_name', 'entity_reference', TRUE, 1, $dependencies);
}