Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
assertCmsAwareAndAdminUiIsInstalled example
$this
->pluginFinder =
$this
->
getContainer
(
)
->
get
(
PluginFinder::
class
)
;
$this
->pluginRepository =
$this
->
getContainer
(
)
->
get
(
'plugin.repository'
)
;
$this
->pluginLifecycleService =
$this
->
getContainer
(
)
->
get
(
PluginLifecycleService::
class
)
;
$this
->languageRepository =
$this
->
getContainer
(
)
->
get
(
'language.repository'
)
;
}
public
function
testCmsAwareAndAdminUiForApp
(
)
: void
{
$appEntity
=
$this
->
installAndActivateApp
(
)
;
$this
->
assertCmsAwareAndAdminUiIsInstalled
(
$appEntity
)
;
$this
->
uninstallApp
(
$appEntity
)
;
$this
->
assertCmsAwareAndAdminUiIsUninstalled
(
)
;
}
public
function
testCmsAwareAndAdminUiForPlugin
(
)
: void
{
$pluginEntity
=
$this
->
installPlugin
(
)
;
$this
->
assertCmsAwareAndAdminUiIsInstalled
(
$pluginEntity
)
;
$this
->
uninstallPlugin
(
$pluginEntity
)
;