public function AttributeValueTest::testMigrateProductAttributeValueTest in Commerce Migrate 3.0.x
Same name and namespace in other branches
- 8.2 modules/csv_example/tests/src/Kernel/Migrate/AttributeValueTest.php \Drupal\Tests\commerce_migrate_csv_example\Kernel\Migrate\AttributeValueTest::testMigrateProductAttributeValueTest()
- 3.1.x modules/csv_example/tests/src/Kernel/Migrate/AttributeValueTest.php \Drupal\Tests\commerce_migrate_csv_example\Kernel\Migrate\AttributeValueTest::testMigrateProductAttributeValueTest()
Test currency migration from Drupal 6 to 8.
File
- modules/
csv_example/ tests/ src/ Kernel/ Migrate/ AttributeValueTest.php, line 65
Class
- AttributeValueTest
- Tests product attribute value migration.
Namespace
Drupal\Tests\commerce_migrate_csv_example\Kernel\MigrateCode
public function testMigrateProductAttributeValueTest() {
$this
->assertProductAttributeValueEntity('1', 'color', 'Black', 'Black', '0');
$this
->assertProductAttributeValueEntity('2', 'size', 'XS', 'XS', '0');
$this
->assertProductAttributeValueEntity('3', 'size', 'SM', 'SM', '0');
$this
->assertProductAttributeValueEntity('4', 'size', 'MD', 'MD', '0');
$this
->assertProductAttributeValueEntity('5', 'size', 'LG', 'LG', '0');
$this
->assertProductAttributeValueEntity('6', 'size', 'XL', 'XL', '0');
$this
->assertProductAttributeValueEntity('7', 'size', '2XL', '2XL', '0');
$this
->assertProductAttributeValueEntity('8', 'size', '3XL', '3XL', '0');
$this
->assertProductAttributeValueEntity('9', 'color', 'Blue', 'Blue', '0');
$this
->assertProductAttributeValueEntity('10', 'size', '4', '4', '0');
$this
->assertProductAttributeValueEntity('11', 'color', 'Purple', 'Purple', '0');
$this
->assertProductAttributeValueEntity('12', 'size', '6', '6', '0');
$this
->assertProductAttributeValueEntity('13', 'size', '8', '8', '0');
$this
->assertProductAttributeValueEntity('14', 'size', '10', '10', '0');
}