You are here

public function CommerceAdjustmentsTest::testNoCommerceAdjustments in Commerce Migrate 8.2

Same name and namespace in other branches
  1. 3.1.x tests/src/Kernel/Plugin/migrate/process/CommerceAdjustmentsTest.php \Drupal\Tests\commerce_migrate\Kernel\Plugin\migrate\process\CommerceAdjustmentsTest::testNoCommerceAdjustments()
  2. 3.0.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\process

Code

public function testNoCommerceAdjustments($value = NULL, $expected = NULL) {
  $new_value = $this->plugin
    ->transform($value, $this->migrateExecutable, $this->row, 'destination_property');
  $this
    ->assertEquals($expected, $new_value);
}