Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
decodeJsonResponse example
->
willReturn
(
[
(
new
StorePluginStruct
(
)
)
->
assign
(
[
'name' =>
$plugin1Name
]
)
,
]
)
;
$frwController
=
new
FirstRunWizardController
(
$this
->firstRunWizardService,
$pluginRepository
,
$appRepository
,
)
;
$response
=
$frwController
->
getLanguagePluginList
(
$context
)
;
$responseData
=
$this
->
decodeJsonResponse
(
$response
)
;
static
::
assertArrayHasKey
(
'items',
$responseData
)
;
static
::
assertArrayHasKey
(
'total',
$responseData
)
;
}
public
function
testTryingToGetLanguagePluginListFails
(
)
: void
{
$context
=
$this
->
createContext
(
)
;
$pluginRepository
=
new
StaticEntityRepository
(
[
$this
->
createPluginSearchResult
(
$context
,
[
[