Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
ThemeNotIncludingPluginJsAndCss example
$scriptFiles
=
$resolvedFiles
[
'script'
]
;
$actual
=
$scriptFiles
->
getFilepaths
(
)
;
$expected
=
array_unique
(
$scriptFiles
->
getFilepaths
(
)
)
;
static
::
assertEquals
(
$expected
,
$actual
)
;
}
public
function
testParentThemeIncludesPlugins
(
)
: void
{
$projectDir
=
$this
->
getContainer
(
)
->
getParameter
(
'kernel.project_dir'
)
;
$themePluginBundle
=
new
ThemeNotIncludingPluginJsAndCss
(
)
;
$storefrontBundle
=
new
MockStorefront
(
)
;
$pluginBundle
=
new
SimplePlugin
(
true, __DIR__ . '/fixtures/SimplePlugin'
)
;
$factory
=
new
StorefrontPluginConfigurationFactory
(
$projectDir
)
;
$config
=
$factory
->
createFromBundle
(
$themePluginBundle
)
;
$storefront
=
$factory
->
createFromBundle
(
$storefrontBundle
)
;
$plugin
=
$factory
->
createFromBundle
(
$pluginBundle
)
;
$configCollection
=
new
StorefrontPluginConfigurationCollection
(
)
;
$configCollection
->
add
(
$config
)
;
$configCollection
->
add
(
$storefront
)
;