static::
expectExceptionMessage('The provided token ' .
$token . ' is invalidated and the payment could not be processed.'
);
$tokenFactory->
parseToken($token);
} public static function createTransaction(): OrderTransactionEntity
{ $transactionStruct =
new OrderTransactionEntity();
$transactionStruct->
setId(Uuid::
randomHex());
$transactionStruct->
setOrderId(Uuid::
randomHex());
$transactionStruct->
setPaymentMethodId(Uuid::
randomHex());
$transactionStruct->
setStateId(Uuid::
randomHex());
return $transactionStruct;
} /**
* @return iterable<array-key, array{int, bool}>
*/
public static function dataProviderExpiration(): iterable
{ yield 'positive expire' =>
[30, false
];
yield 'negative expire' =>
[-30, true
];
}