You are here

public function ProfileTypeTest::testProfileType in Commerce Migrate 8.2

Same name in this branch
  1. 8.2 modules/magento/tests/src/Kernel/Migrate/magento2/ProfileTypeTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2\ProfileTypeTest::testProfileType()
  2. 8.2 modules/commerce/tests/src/Kernel/Migrate/commerce1/ProfileTypeTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\ProfileTypeTest::testProfileType()
Same name and namespace in other branches
  1. 3.1.x modules/magento/tests/src/Kernel/Migrate/magento2/ProfileTypeTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2\ProfileTypeTest::testProfileType()
  2. 3.0.x modules/magento/tests/src/Kernel/Migrate/magento2/ProfileTypeTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2\ProfileTypeTest::testProfileType()

Tests node type migration.

File

modules/magento/tests/src/Kernel/Migrate/magento2/ProfileTypeTest.php, line 77

Class

ProfileTypeTest
Tests profile type migration.

Namespace

Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2

Code

public function testProfileType() {
  $profile_type = ProfileType::load('customer');
  $this
    ->assertInstanceOf(ProfileType::class, $profile_type);
  $this
    ->assertSame('en', $profile_type
    ->language()
    ->getId());
  $profile_type = ProfileType::load('shipping');
  $this
    ->assertInstanceOf(ProfileType::class, $profile_type);
  $this
    ->assertSame('en', $profile_type
    ->language()
    ->getId());
}