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',
                            
Home | Imprint | This part of the site doesn't use cookies.