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/shopify/tests/src/Kernel/Migrate/ProductTypeTest.php \Drupal\Tests\commerce_migrate_shopify\Kernel\Migrate\ProductTypeTest::testProductType()
  2. 3.0.x modules/shopify/tests/src/Kernel/Migrate/ProductTypeTest.php \Drupal\Tests\commerce_migrate_shopify\Kernel\Migrate\ProductTypeTest::testProductType()

Test product type migration.

File

modules/shopify/tests/src/Kernel/Migrate/ProductTypeTest.php, line 68

Class

ProductTypeTest
Tests product type migration.

Namespace

Drupal\Tests\commerce_migrate_shopify\Kernel\Migrate

Code

public function testProductType() {
  $this
    ->assertProductTypeEntity('bag_accessory', 'Bag Accessory', NULL, 'default');
  $this
    ->assertProductTypeEntity('mens_short_sleeve_t_shirts', 'Mens Short Sleeve T-Shirts', NULL, 'default');
  $this
    ->assertProductTypeEntity('mens_t_shirt', 'Mens T-Shirt', NULL, 'default');
}