Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
SimplePluginWithoutCompilation example
$this
->configurationRegistryMock->
expects
(
static
::
once
(
)
)
->
method
(
'getConfigurations'
)
->
willReturn
(
$configs
)
;
$this
->themeLifecycleHandler->
handleThemeUninstall
(
$uninstalledConfig
, Context::
createDefaultContext
(
)
)
;
}
public
function
testHandleThemeUninstallWillNotRecompileThemeIfNotNecessary
(
)
: void
{
$uninstalledConfig
=
$this
->configFactory->
createFromBundle
(
new
SimplePluginWithoutCompilation
(
)
)
;
$this
->themeServiceMock->
expects
(
static
::
never
(
)
)
->
method
(
'compileTheme'
)
;
$configs
=
new
StorefrontPluginConfigurationCollection
(
[
$this
->configFactory->
createFromBundle
(
new
Storefront
(
)
)
,
$uninstalledConfig
,
]
)
;
$this
->configurationRegistryMock->
expects
(
static
::
once
(
)
)
->
method
(
'getConfigurations'
)