Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
PaymentTransactionChainProcessor example
new
Criteria
(
)
,
Context::
createDefaultContext
(
)
)
)
;
$eventDispatcher
=
$this
->
createMock
(
EventDispatcherInterface::
class
)
;
$eventDispatcher
->
expects
(
static
::
once
(
)
)
->
method
(
'dispatch'
)
->
with
(
static
::
isInstanceOf
(
PayPaymentOrderCriteriaEvent::
class
)
)
;
$processor
=
new
PaymentTransactionChainProcessor
(
$this
->
createMock
(
TokenFactoryInterfaceV2::
class
)
,
$orderRepository
,
$this
->
createMock
(
RouterInterface::
class
)
,
$this
->
createMock
(
PaymentHandlerRegistry::
class
)
,
$this
->
createMock
(
SystemConfigService::
class
)
,
$this
->
createMock
(
InitialStateIdLoader::
class
)
,
new
PaymentTransactionStructFactory
(
)
,
$eventDispatcher
,
)
;
if
(
!Feature::
isActive
(
'v6.6.0.0'
)
)
{