public function OrderAdjustmentShippingTest::testInvalidValue in Commerce Migrate 3.1.x
Same name and namespace in other branches
- 8.2 modules/commerce/tests/src/Unit/Plugin/migrate/process/commerce1/OrderAdjustmentShippingTest.php \Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1\OrderAdjustmentShippingTest::testInvalidValue()
- 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::testInvalidValue()
Tests that exceptions are thrown as needed.
@dataProvider providerTestInvalidValue
File
- modules/
commerce/ tests/ src/ Unit/ Plugin/ migrate/ process/ commerce1/ OrderAdjustmentShippingTest.php, line 77
Class
- OrderAdjustmentShippingTest
- Tests the Order Adjustment Shipping plugin.
Namespace
Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1Code
public function testInvalidValue($value = NULL, $message = NULL) {
$this
->expectException(MigrateSkipRowException::class);
$this
->expectExceptionMessage($message);
$this->plugin = new OrderAdjustmentShipping([], 'test', []);
$this->plugin
->transform($value, $this->migrateExecutable, $this->row, 'foo');
}