Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
updateDeactivatedPluginWithException example
public
function
testUpdateActivatedPluginWithExceptionOnDeactivationWithNonStandardLanguage
(
)
: void
{
$this
->
setNewSystemLanguage
(
$this
->iso
)
;
$this
->
updateActivatedPluginWithExceptionOnDeactivation
(
$this
->context
)
;
$this
->
resetSystemLanguage
(
)
;
}
public
function
testUpdateDeactivatedPluginWithException
(
)
: void
{
$this
->
updateDeactivatedPluginWithException
(
$this
->context
)
;
}
public
function
testAssetIsCalledOnlyWhenStateIsNotSet
(
)
: void
{
$assetService
=
$this
->
createMock
(
AssetService::
class
)
;
$assetService
->
expects
(
static
::
once
(
)
)
->
method
(
'copyAssetsFromBundle'
)
;
$service
=
new
PluginLifecycleService
(
$this
->pluginRepo,