installAndActivateApp example

$this->appRepository = $this->getContainer()->get('app.repository');

        $this->pluginFinder = $this->getContainer()->get(PluginFinder::class);
        $this->pluginRepository = $this->getContainer()->get('plugin.repository');
        $this->pluginLifecycleService = $this->getContainer()->get(PluginLifecycleService::class);

        $this->languageRepository = $this->getContainer()->get('language.repository');
    }

    public function testCmsAwareAndAdminUiForApp(): void
    {
        $appEntity = $this->installAndActivateApp();
        $this->assertCmsAwareAndAdminUiIsInstalled($appEntity);

        $this->uninstallApp($appEntity);
        $this->assertCmsAwareAndAdminUiIsUninstalled();
    }

    public function testCmsAwareAndAdminUiForPlugin(): void
    {
        $pluginEntity = $this->installPlugin();
        $this->assertCmsAwareAndAdminUiIsInstalled($pluginEntity);

        
Home | Imprint | This part of the site doesn't use cookies.