You are here

public function ProductTypeTest::testProductType in Commerce Migrate 3.1.x

Same name in this branch
  1. 3.1.x modules/shopify/tests/src/Kernel/Migrate/ProductTypeTest.php \Drupal\Tests\commerce_migrate_shopify\Kernel\Migrate\ProductTypeTest::testProductType()
  2. 3.1.x modules/magento/tests/src/Kernel/Migrate/magento2/ProductTypeTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2\ProductTypeTest::testProductType()
  3. 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc7/ProductTypeTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\ProductTypeTest::testProductType()
  4. 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc6/ProductTypeTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\ProductTypeTest::testProductType()
  5. 3.1.x modules/commerce/tests/src/Kernel/Migrate/commerce1/ProductTypeTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\ProductTypeTest::testProductType()
Same name and namespace in other branches
  1. 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc6/ProductTypeTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\ProductTypeTest::testProductType()
  2. 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc6/ProductTypeTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\ProductTypeTest::testProductType()

Test product type migration.

File

modules/ubercart/tests/src/Kernel/Migrate/uc6/ProductTypeTest.php, line 47

Class

ProductTypeTest
Tests product type migration.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6

Code

public function testProductType() {
  $description = 'A type of spacecraft capable of traveling to the solar systems of other stars';
  $this
    ->assertProductTypeEntity('ship', 'Ship', $description, 'ship');
  $description = 'This node displays the representation of a product for sale on the website. It includes all the unique information that can be attributed to a specific model number.';
  $this
    ->assertProductTypeEntity('product', 'Product', $description, 'product');
}