Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getThemeJsonConfig example
new
EntitySearchResult
(
'theme',
1,
$themeCollection
,
null,
new
Criteria
(
)
,
$this
->context
)
)
;
$storefrontPlugin
=
new
StorefrontPluginConfiguration
(
'Test'
)
;
$storefrontPlugin
->
setThemeConfig
(
ThemeFixtures::
getThemeJsonConfig
(
)
)
;
$this
->storefrontPluginRegistryMock->
method
(
'getConfigurations'
)
->
willReturn
(
new
StorefrontPluginConfigurationCollection
(
[
$storefrontPlugin
,
]
)
)
;
$config
=
$this
->themeService->
getThemeConfiguration
(
$ids
[
'themeId'
]
, true,
$this
->context
)
;