public function SkipShippingDefaultTest::testShippingRow in Commerce Migrate 3.1.x
Same name and namespace in other branches
- 8.2 modules/magento/tests/src/Unit/Plugin/migrate/process/SkipShippingDefaultTest.php \Drupal\Tests\commerce_migrate_magento\Unit\Plugin\migrate\process\SkipShippingDefaultTest::testShippingRow()
- 3.0.x modules/magento/tests/src/Unit/Plugin/migrate/process/SkipShippingDefaultTest.php \Drupal\Tests\commerce_migrate_magento\Unit\Plugin\migrate\process\SkipShippingDefaultTest::testShippingRow()
Tests that exception is thrown when input is not an array.
@dataProvider providerTestShippingRow
File
- modules/
magento/ tests/ src/ Unit/ Plugin/ migrate/ process/ SkipShippingDefaultTest.php, line 50
Class
- SkipShippingDefaultTest
- Tests the skip default shipping row process plugin.
Namespace
Drupal\Tests\commerce_migrate_magento\Unit\Plugin\migrate\processCode
public function testShippingRow($value = NULL) {
$configuration = [];
$this->plugin = new SkipShippingDefault($configuration, 'map', []);
$this
->expectExceptionMessage('Skip default shipping row.');
$this->plugin
->transform($value, $this->migrateExecutable, $this->row, 'foo');
}