protected function AttributeValueTest::setUp in Commerce Migrate 8.2
Same name and namespace in other branches
- 3.1.x modules/csv_example/tests/src/Kernel/Migrate/AttributeValueTest.php \Drupal\Tests\commerce_migrate_csv_example\Kernel\Migrate\AttributeValueTest::setUp()
- 3.0.x modules/csv_example/tests/src/Kernel/Migrate/AttributeValueTest.php \Drupal\Tests\commerce_migrate_csv_example\Kernel\Migrate\AttributeValueTest::setUp()
Overrides CsvTestBase::setUp
File
- modules/
csv_example/ tests/ src/ Kernel/ Migrate/ AttributeValueTest.php, line 51
Class
- AttributeValueTest
- Tests product attribute value migration.
Namespace
Drupal\Tests\commerce_migrate_csv_example\Kernel\MigrateCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('commerce_product_variation');
$this
->installEntitySchema('commerce_product');
$this
->installEntitySchema('commerce_product_attribute');
$this
->installEntitySchema('commerce_product_attribute_value');
$this
->installConfig([
'commerce_product',
]);
$this
->createAttribute([
'Accessory Size',
'Color',
'Shoe Size',
'Size',
]);
$this
->executeMigration('csv_example_attribute_value');
}