Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
createNonStandardLanguageContext example
if
(
!
empty
(
$exception
->
getParameters
(
)
[
'errorsString'
]
)
&&
$exception
->
getParameters
(
)
[
'errorsString'
]
===
$errorString
)
{
$errorFound
= true;
}
}
static
::
assertTrue
(
$errorFound
)
;
}
public
function
testRefreshPluginsWithNonStandardLanguage
(
)
: void
{
$nonStandardLanguageContext
=
$this
->
createNonStandardLanguageContext
(
$this
->iso
)
;
$this
->pluginService->
refreshPlugins
(
$nonStandardLanguageContext
,
new
NullIO
(
)
)
;
$plugin
=
$this
->
fetchSwagTestPluginEntity
(
$nonStandardLanguageContext
)
;
$this
->
assertDefaultPlugin
(
$plugin
)
;
$this
->
assertPluginMetaInformation
(
$plugin
)
;
static
::
assertSame
(
'English description',
$plugin
->
getTranslated
(
)
[
'description'
]
)
;
static
::
assertSame
(
'https://www.test.com/',
$plugin
->
getTranslated
(
)
[
'manufacturerLink'
]
)
;
static
::
assertSame
(
'https://www.test.com/support',
$plugin
->
getTranslated
(
)
[
'supportLink'
]
)
;
}
$this
->
deactivatePluginNotActivatedThrowsException
(
$this
->context
)
;
}
public
function
testRemoveMigrationsCannotRemoveShopwareMigrations
(
)
: void
{
$this
->
removeMigrationsCannotRemoveShopwareMigrations
(
$this
->context
)
;
}
public
function
testInstallPluginWithNonStandardLanguage
(
)
: void
{
$this
->
installPluginTest
(
$this
->
createNonStandardLanguageContext
(
)
)
;
}
public
function
testInstallPluginWithoutConfigWithNonStandardLanguage
(
)
: void
{
$this
->
installPluginWithoutConfig
(
$this
->
createNonStandardLanguageContext
(
)
)
;
}
public
function
testInstallPluginAlreadyInstalledWithNonStandardLanguage
(
)
: void
{
$this
->
setNewSystemLanguage
(
$this
->iso
)
;
$this
->
installPluginAlreadyInstalled
(
$this
->context
)
;