Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getIsoList example
static
::
assertNotNull
(
$result_en_GB
)
;
static
::
assertNotNull
(
$result_de_DE
)
;
static
::
assertSame
(
'en-GB',
$result_en_GB
->
getIso
(
)
)
;
static
::
assertSame
(
'de-DE',
$result_de_DE
->
getIso
(
)
)
;
static
::
assertNull
(
$result_NA
)
;
}
public
function
testGetIsoList
(
)
: void
{
$collection
=
$this
->
getCollection
(
)
;
$isoList
=
$collection
->
getIsoList
(
)
;
static
::
assertCount
(
2,
$isoList
)
;
static
::
assertContains
(
'de-DE',
$isoList
)
;
static
::
assertContains
(
'en-GB',
$isoList
)
;
}
public
function
testGetLanguageFilesByIso
(
)
: void
{
$collection
=
$this
->
getCollection
(
)
;
$result_en_GB
=
$collection
->
getSnippetFilesByIso
(
'en-GB'
)
;