You are here

public function ShippingFlatRateTest::testShippingFlatRate in Commerce Migrate 8.2

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

Test flat rate shipping method migration.

File

modules/ubercart/tests/src/Kernel/Migrate/uc7/ShippingFlatRateTest.php, line 47

Class

ShippingFlatRateTest
Tests flat rate shipping migration from Uberart 7.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7

Code

public function testShippingFlatRate() {
  $type = [
    'id' => '1',
    'label' => 'Flat Rate',
    'rate_amount' => [
      'number' => '1.500000',
      'currency_code' => 'USD',
    ],
    'stores' => [
      '1',
    ],
  ];
  $this
    ->assertShippingMethod($type);
}