public function CommerceAdjustmentsTest::testNoCommerceAdjustments in Commerce Migrate 3.0.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::testNoCommerceAdjustments()
- 3.1.x tests/src/Kernel/Plugin/migrate/process/CommerceAdjustmentsTest.php \Drupal\Tests\commerce_migrate\Kernel\Plugin\migrate\process\CommerceAdjustmentsTest::testNoCommerceAdjustments()
Tests invalid inputs to CommerceAdjustments.
@dataProvider providerNoCommerceAdjustment
File
- tests/
src/ Kernel/ Plugin/ migrate/ process/ CommerceAdjustmentsTest.php, line 169
Class
- CommerceAdjustmentsTest
- Tests the CommerceAdjustment plugin.
Namespace
Drupal\Tests\commerce_migrate\Kernel\Plugin\migrate\processCode
public function testNoCommerceAdjustments($value = NULL, $expected = NULL) {
$new_value = $this->plugin
->transform($value, $this->migrateExecutable, $this->row, 'destination_property');
$this
->assertEquals($expected, $new_value);
}