#[Package('checkout')]
class PaymentHandlerIdentifierSubscriberTest extends TestCase
{ public function testGetSubscribedEvents(): void
{ static::
assertSame( [ 'payment_method.loaded' => 'formatHandlerIdentifier',
'payment_method.partial_loaded' => 'formatHandlerIdentifier',
],
PaymentHandlerIdentifierSubscriber::
getSubscribedEvents() );
} public function testFormatHandlerIdentifier(): void
{ $paymentMethods =
[ $this->
getPaymentMethod(),
$this->
getPaymentMethod(AsynchronousPaymentHandlerInterface::
class),
$this->
getPaymentMethod(RefundPaymentHandlerInterface::
class),
$this->
getPaymentMethod(PreparedPaymentHandlerInterface::
class),
$this->
getPaymentMethod(RecurringPaymentHandlerInterface::
class),
];