You are here

ProfileTypeCustomerTest.php in Commerce Migrate 3.0.x

File

modules/ubercart/tests/src/Kernel/Migrate/uc7/ProfileTypeCustomerTest.php
View source
<?php

namespace Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7;

use Drupal\Tests\commerce_migrate\Kernel\CommerceMigrateTestTrait;

/**
 * Tests customer profile type migration.
 *
 * @group commerce_migrate
 * @group commerce_migrate_uc7
 */
class ProfileTypeCustomerTest extends Ubercart7TestBase {
  use CommerceMigrateTestTrait;

  /**
   * {@inheritdoc}
   */
  public static $modules = [
    'profile',
  ];

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();
    $this
      ->installEntitySchema('profile');
    $this
      ->executeMigration('uc_profile_type');
  }

  /**
   * Test profile migration.
   */
  public function testProfileType() {
    $this
      ->assertProfileType('customer', 'Customer', FALSE, FALSE);
  }

}

Classes

Namesort descending Description
ProfileTypeCustomerTest Tests customer profile type migration.