You are here

protected function PaymentTest::setUp in Commerce Migrate 3.1.x

Same name in this branch
  1. 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc7/PaymentTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\PaymentTest::setUp()
  2. 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc6/PaymentTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\PaymentTest::setUp()
  3. 3.1.x modules/commerce/tests/src/Kernel/Migrate/commerce1/PaymentTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\PaymentTest::setUp()
Same name and namespace in other branches
  1. 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc7/PaymentTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\PaymentTest::setUp()
  2. 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc7/PaymentTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\PaymentTest::setUp()

Overrides MigrateDrupal7TestBase::setUp

File

modules/ubercart/tests/src/Kernel/Migrate/uc7/PaymentTest.php, line 43

Class

PaymentTest
Tests payment migration.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installEntitySchema('commerce_payment');
  PaymentGateway::create([
    'id' => 'example',
    'label' => 'Example',
    'plugin' => 'manual',
  ])
    ->save();
  $this
    ->migrateOrders();
  $this
    ->executeMigrations([
    'uc_payment_gateway',
    'uc7_payment',
  ]);
}