You are here

public function CommerceAdjustmentsTest::testValidCommerceAdjustments 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::testValidCommerceAdjustments()
  2. 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\process

Code

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);
  }
}