Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
accessAddCartErrors example
$container
->
method
(
'get'
)
->
willReturnMap
(
[
$this
->
getRequestStack
(
)
,
$this
->
getRouter
(
)
,
$this
->
getTranslator
(
$cart
->
getErrors
(
)
)
,
]
)
;
$controller
=
new
TestController
(
)
;
$controller
->
setContainer
(
$container
)
;
$controller
->
accessAddCartErrors
(
$cart
)
;
static
::
assertNotEmpty
(
$cart
->
getErrors
(
)
->
getElements
(
)
)
;
}
public
function
testStorefrontRenderViewinheritance
(
)
: void
{
$twig
=
$this
->
createFinder
(
[
new
BundleFixture
(
'TestPlugin1', __DIR__ . '/fixtures/Plugins/TestPlugin1/'
)
,
new
BundleFixture
(
'Storefront', __DIR__ . '/fixtures/Storefront/'
)
,
]
)
;