public function CommerceAdjustmentsTest::testExceptionPrice in Commerce Migrate 8.2
Same name and namespace in other branches
- 3.1.x tests/src/Kernel/Plugin/migrate/process/CommerceAdjustmentsTest.php \Drupal\Tests\commerce_migrate\Kernel\Plugin\migrate\process\CommerceAdjustmentsTest::testExceptionPrice()
- 3.0.x tests/src/Kernel/Plugin/migrate/process/CommerceAdjustmentsTest.php \Drupal\Tests\commerce_migrate\Kernel\Plugin\migrate\process\CommerceAdjustmentsTest::testExceptionPrice()
Tests Commerce Price exceptions.
@dataProvider providerExceptionPrice
File
- tests/
src/ Kernel/ Plugin/ migrate/ process/ CommerceAdjustmentsTest.php, line 199
Class
- CommerceAdjustmentsTest
- Tests the CommerceAdjustment plugin.
Namespace
Drupal\Tests\commerce_migrate\Kernel\Plugin\migrate\processCode
public function testExceptionPrice($value = NULL) {
$msg = sprintf('Failed creating price for adjustment %s', var_export($value, TRUE));
$this
->expectException(MigrateSkipRowException::class);
$this
->expectExceptionMessage($msg);
$this->plugin
->transform([
$value,
], $this->migrateExecutable, $this->row, 'destination_property');
}