You are here

public function ShipmentWeightTest::totalWeightProvider in Commerce Shipping 8.2

Data provider for ::testEvaluate.

Return value

array A list of testEvaluate function arguments.

File

tests/src/Unit/Plugin/Commerce/Condition/ShipmentWeightTest.php, line 62

Class

ShipmentWeightTest
@coversDefaultClass \Drupal\commerce_shipping\Plugin\Commerce\Condition\ShipmentWeight @group commerce

Namespace

Drupal\Tests\commerce_shipping\Unit\Plugin\Commerce\Condition

Code

public function totalWeightProvider() {
  return [
    [
      '>',
      10,
      5,
      FALSE,
    ],
    [
      '>',
      10,
      10,
      FALSE,
    ],
    [
      '>',
      10,
      11,
      TRUE,
    ],
    [
      '>=',
      10,
      5,
      FALSE,
    ],
    [
      '>=',
      10,
      10,
      TRUE,
    ],
    [
      '>=',
      10,
      11,
      TRUE,
    ],
    [
      '<',
      10,
      5,
      TRUE,
    ],
    [
      '<',
      10,
      10,
      FALSE,
    ],
    [
      '<',
      10,
      11,
      FALSE,
    ],
    [
      '<=',
      10,
      5,
      TRUE,
    ],
    [
      '<=',
      10,
      10,
      TRUE,
    ],
    [
      '<=',
      10,
      11,
      FALSE,
    ],
    [
      '==',
      10,
      5,
      FALSE,
    ],
    [
      '==',
      10,
      10,
      TRUE,
    ],
    [
      '==',
      10,
      11,
      FALSE,
    ],
  ];
}