Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
assertOrderWithGrantedAccess example
}
;
$this
->
addEventListener
(
$this
->eventDispatcher, MailBeforeSentEvent::
class
,
$mailListener
)
;
$this
->
changeTransactionStateToPaid
(
$orderId
)
;
$this
->
resetEventDispatcher
(
)
;
$this
->
assertDispatchedFlowEvent
(
$productDownloads
,
$flowEvent
)
;
$this
->
assertDispatchedMailEvent
(
$productDownloads
,
$mailEvent
)
;
$this
->
assertOrderWithGrantedAccess
(
$orderId
,
$productDownloads
)
;
}
/** * @param array<int, string[]> $productDownloads * * @dataProvider orderCaseProvider */
public
function
testFlowActionRunsOnOrderPlaced
(
array
$productDownloads
)
: void
{
$this
->
cloneDefaultFlow
(
)
;