You are here

public function ProductAttributeValueTest::testProductAttributeValue in Commerce Migrate 8.2

Same name in this branch
  1. 8.2 modules/magento/tests/src/Kernel/Migrate/magento2/ProductAttributeValueTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2\ProductAttributeValueTest::testProductAttributeValue()
  2. 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc7/ProductAttributeValueTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\ProductAttributeValueTest::testProductAttributeValue()
  3. 8.2 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. 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc7/ProductAttributeValueTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\ProductAttributeValueTest::testProductAttributeValue()
  2. 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc7/ProductAttributeValueTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\ProductAttributeValueTest::testProductAttributeValue()

Test product attribute value migration.

File

modules/ubercart/tests/src/Kernel/Migrate/uc7/ProductAttributeValueTest.php, line 45

Class

ProductAttributeValueTest
Tests product attribute value migration.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7

Code

public function testProductAttributeValue() {
  $this
    ->assertProductAttributeValueEntity('1', 'size', 'Small', 'Small', '0');
  $this
    ->assertProductAttributeValueEntity('2', 'size', 'Medium', 'Medium', '0');
  $this
    ->assertProductAttributeValueEntity('3', 'size', 'Large', 'Large', '0');
  $this
    ->assertProductAttributeValueEntity('4', 'extra', 'Frosted glass', 'Frosted glass', '0');
  $this
    ->assertProductAttributeValueEntity('5', 'extra', 'Ice', 'Ice', '0');
  $this
    ->assertProductAttributeValueEntity('6', 'extra', 'Lemon', 'Lemon', '0');
}