Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
CheckoutCartPageLoader example
new
ShippingMethodCollection
(
)
,
null,
new
Criteria
(
)
,
Context::
createDefaultContext
(
)
)
)
;
$route
=
$this
->
createMock
(
ShippingMethodRoute::
class
)
;
$route
->
method
(
'load'
)
->
willReturn
(
$response
)
;
$loader
=
new
CheckoutCartPageLoader
(
$this
->
getContainer
(
)
->
get
(
GenericPageLoader::
class
)
,
$this
->
getContainer
(
)
->
get
(
'event_dispatcher'
)
,
$this
->
getContainer
(
)
->
get
(
StorefrontCartFacade::
class
)
,
$this
->
getContainer
(
)
->
get
(
PaymentMethodRoute::
class
)
,
$route
,
$this
->
getContainer
(
)
->
get
(
CountryRoute::
class
)
)
;
$context
=
$this
->
createSalesChannelContextWithNavigation
(
)
;
$result
=
$loader
->
load
(
new
Request
(
)
,
$context
)
;