static::
assertArrayHasKey('lineItemReleaseDate',
$ruleConstraints, 'Constraint lineItemReleaseDate not found in Rule'
);
static::
assertArrayHasKey('operator',
$ruleConstraints, 'Constraint operator not found in Rule'
);
$date =
$ruleConstraints['lineItemReleaseDate'
];
$operators =
$ruleConstraints['operator'
];
static::
assertEquals(new NotBlank(),
$date[0
]);
static::
assertEquals(new Type(['type' => 'string'
]),
$date[1
]);
static::
assertEquals(new NotBlank(),
$operators[0
]);
static::
assertEquals(new Choice($expectedOperators),
$operators[1
]);
} /**
* @return array<string, array<bool|string|null>>
*/
public static function getMatchValues(): array
{ return [ 'EQ - positive 1' =>
[true, '2020-02-06 02:00:00', '2020-02-06 02:00:00', Rule::OPERATOR_EQ
],
'EQ - positive 2' =>
[true, '2020-02-06', '2020-02-06', Rule::OPERATOR_EQ
],
'EQ - negative' =>
[false, '2020-02-05 00:00:00', '2020-02-06 02:00:00', Rule::OPERATOR_EQ
],