public function ProfileTypeTest::testProfileType in Commerce Migrate 3.0.x
Same name in this branch
- 3.0.x modules/magento/tests/src/Kernel/Migrate/magento2/ProfileTypeTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2\ProfileTypeTest::testProfileType()
- 3.0.x 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
- 8.2 modules/magento/tests/src/Kernel/Migrate/magento2/ProfileTypeTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2\ProfileTypeTest::testProfileType()
- 3.1.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\magento2Code
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());
}