Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
assertGermanPlugin example
public
function
testRefreshPluginsWithGermanContext
(
)
: void
{
$context
=
new
Context
(
new
SystemSource
(
)
,
[
]
, Defaults::CURRENCY,
[
$this
->
getDeDeLanguageId
(
)
]
)
;
$this
->pluginService->
refreshPlugins
(
$context
,
new
NullIO
(
)
)
;
$plugin
=
$this
->
fetchSwagTestPluginEntity
(
$context
)
;
$this
->
assertPluginMetaInformation
(
$plugin
)
;
$this
->
assertGermanPlugin
(
$plugin
)
;
}
public
function
testRefreshPluginsExistingWithPluginUpdate
(
)
: void
{
$installedAt
=
(
new
\
DateTime
(
)
)
->
format
(
Defaults::STORAGE_DATE_TIME_FORMAT
)
;
$this
->
createPlugin
(
$this
->pluginRepo,
$this
->context, SwagTest::PLUGIN_OLD_VERSION,
$installedAt
)
;
$this
->pluginService->
refreshPlugins
(
$this
->context,
new
NullIO
(
)
)
;
$plugin
=
$this
->
fetchSwagTestPluginEntity
(
)
;