if (!Feature::
isActive('v6.6.0.0'
)) { static::
expectException(UnknownRefundException::
class);
} static::
expectException(PaymentException::
class);
static::
expectExceptionMessage('The Refund process failed with following exception: Unknown refund with id ' .
$this->ids->
get('refund'
) . '.'
);
$this->paymentRefundProcessor->
processRefund($this->ids->
get('refund'
), Context::
createDefaultContext());
} public function testItThrowsOnNotAvailableHandler(): void
{ $refund =
(new OrderTransactionCaptureRefundBuilder( $this->ids,
'refund',
$this->ids->
get('capture'
) )) ->
add('stateId',
$this->
getStateMachineState( OrderTransactionCaptureRefundStates::STATE_MACHINE,
OrderTransactionCaptureRefundStates::STATE_OPEN
)) ->
build();
$capture =
(new OrderTransactionCaptureBuilder($this->ids, 'capture',
$this->ids->
get('transaction'
)))