Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
validateSources example
$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' =>
[
[
'label' =>
[
'en-GB' => 'first App',