You are here

public function ProductAttributeValueTest::testProductAttributeValue in Commerce Migrate 3.1.x

Same name in this branch
  1. 3.1.x modules/magento/tests/src/Kernel/Migrate/magento2/ProductAttributeValueTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2\ProductAttributeValueTest::testProductAttributeValue()
  2. 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc7/ProductAttributeValueTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\ProductAttributeValueTest::testProductAttributeValue()
  3. 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc6/ProductAttributeValueTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\ProductAttributeValueTest::testProductAttributeValue()
Same name and namespace in other branches
  1. 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc6/ProductAttributeValueTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\ProductAttributeValueTest::testProductAttributeValue()
  2. 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc6/ProductAttributeValueTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\ProductAttributeValueTest::testProductAttributeValue()

Test product attribute value migration.

File

modules/ubercart/tests/src/Kernel/Migrate/uc6/ProductAttributeValueTest.php, line 44

Class

ProductAttributeValueTest
Tests product attribute value migration.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6

Code

public function testProductAttributeValue() {
  $this
    ->assertProductAttributeValueEntity('1', 'design', 'Heart of Gold', 'Heart of Gold', '0');
  $this
    ->assertProductAttributeValueEntity('2', 'design', 'Trillian', 'Trillian', '0');
  $this
    ->assertProductAttributeValueEntity('3', 'design', 'Pan Galactic Gargle Blaster', 'Pan Galactic Gargle Blaster', '0');
  $this
    ->assertProductAttributeValueEntity('4', 'color', 'White', 'White', '500');
  $this
    ->assertProductAttributeValueEntity('5', 'color', 'Gold', 'Gold', '500');
  $this
    ->assertProductAttributeValueEntity('6', 'model_size_attribute', 'Keychain', 'Keychain', '20');
  $this
    ->assertProductAttributeValueEntity('7', 'model_size_attribute', 'Desk', 'Desk', '400');
}