Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
AppFlowEventCollection example
protected
function
setUp
(
)
: void
{
$appFlowEvent
=
new
AppFlowEventEntity
(
)
;
$appFlowEvent
->
setUniqueIdentifier
(
Uuid::
randomHex
(
)
)
;
$appFlowEvent
->
setAware
(
[
'customerId'
]
)
;
$appFlowEvent
->
setName
(
'custom.checkout.event'
)
;
$this
->appFlowEventRepository =
new
StaticEntityRepository
(
[
new
EntitySearchResult
(
'app_flow_event',
1,
new
AppFlowEventCollection
(
[
$appFlowEvent
]
)
,
null,
new
Criteria
(
)
,
Context::
createDefaultContext
(
)
,
)
,
]
)
;
$this
->triggerFlowController =
new
TriggerFlowController
(
new
EventDispatcher
(
)
,
$this
->appFlowEventRepository
)
;
}
public
function
testTriggerWithWrongEventName
(
)
: void
{