public function CommerceAdjustmentsTest::testValidCommerceAdjustments in Commerce Migrate 3.1.x
Same name and namespace in other branches
- 8.2 tests/src/Kernel/Plugin/migrate/process/CommerceAdjustmentsTest.php \Drupal\Tests\commerce_migrate\Kernel\Plugin\migrate\process\CommerceAdjustmentsTest::testValidCommerceAdjustments()
- 3.0.x tests/src/Kernel/Plugin/migrate/process/CommerceAdjustmentsTest.php \Drupal\Tests\commerce_migrate\Kernel\Plugin\migrate\process\CommerceAdjustmentsTest::testValidCommerceAdjustments()
Tests valid inputs to CommerceAdjustments.
@dataProvider providerValidCommerceAdjustments
File
- tests/
src/ Kernel/ Plugin/ migrate/ process/ CommerceAdjustmentsTest.php, line 71
Class
- CommerceAdjustmentsTest
- Tests the CommerceAdjustment plugin.
Namespace
Drupal\Tests\commerce_migrate\Kernel\Plugin\migrate\processCode
public function testValidCommerceAdjustments($value = NULL) {
$adjustments = $this->plugin
->transform($value, $this->migrateExecutable, $this->row, 'destination_property');
foreach ($adjustments as $adjustment) {
$this
->assertInstanceOf(Adjustment::class, $adjustment);
}
}