Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
assertNoDefaultPlugin example
static
::
assertSame
(
'https://www.test.com/support',
$plugin
->
getTranslated
(
)
[
'supportLink'
]
)
;
}
public
function
testRefreshPluginsWithDifferentDefaultLanguage
(
)
: void
{
$this
->
setNewSystemLanguage
(
$this
->iso
)
;
$this
->pluginService->
refreshPlugins
(
Context::
createDefaultContext
(
)
,
new
NullIO
(
)
)
;
$plugin
=
$this
->
fetchSwagTestNoDefaultLangPluginEntity
(
)
;
$this
->
assertNoDefaultPlugin
(
$plugin
)
;
$this
->
assertPluginMetaInformation
(
$plugin
)
;
static
::
assertSame
(
'Dutch Beschrijving',
$plugin
->
getTranslated
(
)
[
'description'
]
)
;
static
::
assertSame
(
'https://www.test.nl/',
$plugin
->
getTranslated
(
)
[
'manufacturerLink'
]
)
;
static
::
assertSame
(
'https://www.test.nl/support',
$plugin
->
getTranslated
(
)
[
'supportLink'
]
)
;
}
public
function
testRefreshPluginsWithGermanContext
(
)
: void
{
$context
=
new
Context
(
new
SystemSource
(
)
,
[
]
, Defaults::CURRENCY,
[
$this
->
getDeDeLanguageId
(
)
]
)
;
$this
->pluginService->
refreshPlugins
(
$context
,
new
NullIO
(
)
)
;