You are here

public function OrderAdjustmentShippingTest::testOrderAdjustmentShipping in Commerce Migrate 8.2

Same name and namespace in other branches
  1. 3.1.x modules/commerce/tests/src/Unit/Plugin/migrate/process/commerce1/OrderAdjustmentShippingTest.php \Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1\OrderAdjustmentShippingTest::testOrderAdjustmentShipping()
  2. 3.0.x modules/commerce/tests/src/Unit/Plugin/migrate/process/commerce1/OrderAdjustmentShippingTest.php \Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1\OrderAdjustmentShippingTest::testOrderAdjustmentShipping()

Tests valid input.

@dataProvider providerTestOrderAdjustmentShipping

File

modules/commerce/tests/src/Unit/Plugin/migrate/process/commerce1/OrderAdjustmentShippingTest.php, line 23

Class

OrderAdjustmentShippingTest
Tests the Order Adjustment Shipping plugin.

Namespace

Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1

Code

public function testOrderAdjustmentShipping($value = NULL, $expected = NULL) {
  $configuration = [];
  $this->plugin = new OrderAdjustmentShipping($configuration, 'map', []);
  $value = $this->plugin
    ->transform($value, $this->migrateExecutable, $this->row, 'foo');
  $this
    ->assertSame($expected, $value);
}