public function ShippingFlatRateTest::testShippingFlatRate in Commerce Migrate 3.1.x
Same name in this branch
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc7/ShippingFlatRateTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\ShippingFlatRateTest::testShippingFlatRate()
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc6/ShippingFlatRateTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\ShippingFlatRateTest::testShippingFlatRate()
- 3.1.x 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
- 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc6/ShippingFlatRateTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\ShippingFlatRateTest::testShippingFlatRate()
- 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc6/ShippingFlatRateTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\ShippingFlatRateTest::testShippingFlatRate()
Test flat rate shipping method migration.
File
- modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc6/ ShippingFlatRateTest.php, line 47
Class
- ShippingFlatRateTest
- Tests flat rate shipping migration from Uberart 6.
Namespace
Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6Code
public function testShippingFlatRate() {
$type = [
'id' => '1',
'label' => 'Fluff Ltd',
'rate_amount' => [
'number' => '5.00000',
'currency_code' => 'USD',
],
'stores' => [
'1',
],
];
$this
->assertShippingMethod($type);
$type = [
'id' => '2',
'label' => 'Joopleberry Co.',
'rate_amount' => [
'number' => '2.50000',
'currency_code' => 'USD',
],
'stores' => [
'1',
],
];
$this
->assertShippingMethod($type);
}