public function OrderItemQuantityTest::quantityProvider in Commerce Core 8.2
Data provider for ::testEvaluate.
Return value
array A list of testEvaluate function arguments.
File
- modules/
promotion/ tests/ src/ Unit/ Plugin/ Commerce/ Condition/ OrderItemQuantityTest.php, line 69
Class
- OrderItemQuantityTest
- @coversDefaultClass \Drupal\commerce_promotion\Plugin\Commerce\Condition\OrderItemQuantity @group commerce
Namespace
Drupal\Tests\commerce_promotion\Unit\Plugin\Commerce\ConditionCode
public function quantityProvider() {
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,
],
];
}