Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getSortedModules example
$this
->appRepository =
$this
->
getContainer
(
)
->
get
(
'app.repository'
)
;
$this
->moduleLoader =
$this
->
getContainer
(
)
->
get
(
ModuleLoader::
class
)
;
$this
->context = Context::
createDefaultContext
(
)
;
}
public
function
testLoadModules
(
)
: void
{
$this
->
registerAppsWithModules
(
)
;
$loadedModules
=
$this
->
getSortedModules
(
)
;
$this
->
validateSources
(
$loadedModules
)
;
static
::
assertEquals
(
[
[
'name' => 'App1',
'label' =>
[
'en-GB' => 'test App1',
]
,
'modules' =>
[
[