You are here

public function SkipShippingDefaultTest::testSkipShippingDefault in Commerce Migrate 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/magento/tests/src/Unit/Plugin/migrate/process/SkipShippingDefaultTest.php \Drupal\Tests\commerce_migrate_magento\Unit\Plugin\migrate\process\SkipShippingDefaultTest::testSkipShippingDefault()
  2. 3.1.x modules/magento/tests/src/Unit/Plugin/migrate/process/SkipShippingDefaultTest.php \Drupal\Tests\commerce_migrate_magento\Unit\Plugin\migrate\process\SkipShippingDefaultTest::testSkipShippingDefault()

Tests the skip default shipping row process plugin.

@dataProvider providerTestSkipShippingDefault

File

modules/magento/tests/src/Unit/Plugin/migrate/process/SkipShippingDefaultTest.php, line 23

Class

SkipShippingDefaultTest
Tests the skip default shipping row process plugin.

Namespace

Drupal\Tests\commerce_migrate_magento\Unit\Plugin\migrate\process

Code

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