You are here

public function CommerceAdjustmentsTest::providerNotSet in Commerce Migrate 3.1.x

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/Plugin/migrate/process/CommerceAdjustmentsTest.php \Drupal\Tests\commerce_migrate\Kernel\Plugin\migrate\process\CommerceAdjustmentsTest::providerNotSet()
  2. 3.0.x tests/src/Kernel/Plugin/migrate/process/CommerceAdjustmentsTest.php \Drupal\Tests\commerce_migrate\Kernel\Plugin\migrate\process\CommerceAdjustmentsTest::providerNotSet()

Data provider for testNotSet.

File

tests/src/Kernel/Plugin/migrate/process/CommerceAdjustmentsTest.php, line 273

Class

CommerceAdjustmentsTest
Tests the CommerceAdjustment plugin.

Namespace

Drupal\Tests\commerce_migrate\Kernel\Plugin\migrate\process

Code

public function providerNotSet() {
  $tests = [
    [
      [
        'type' => 'custom',
        'title' => 'test',
        'amount' => '4.00',
      ],
      'currency_code',
    ],
    [
      [
        'type' => 'custom',
        'title' => 'test',
        'currency_code' => 'CAD',
      ],
      'amount',
    ],
    [
      [
        'type' => 'custom',
        'title' => 'test',
      ],
      [
        'amount',
        'currency_code',
      ],
    ],
  ];
  return $tests;
}