app example

public function testGetAppConfigForAppWithoutPermission(): void
    {
        $this->systemConfigService->set('withoutSystemConfigPermission.config.testValue', 'test');

        $appInfo = $this->installApp(__DIR__ . '/_fixtures/apps/withoutSystemConfigPermission');

        $facade = $this->factory->factory(
            new TestHook('test', Context::createDefaultContext()),
            new Script('test', '', new \DateTimeImmutable()$appInfo)
        );

        static::assertEquals('test', $facade->app('testValue'));
    }

    public function testGetAppConfigForApp(): void
    {
        $this->systemConfigService->set('withSystemConfigPermission.config.testValue', 'test');

        $appInfo = $this->installApp(__DIR__ . '/_fixtures/apps/withSystemConfigPermission');

        $facade = $this->factory->factory(
            new TestHook('test', Context::createDefaultContext()),
            new Script('test', '', new \DateTimeImmutable()$appInfo)
        );
Home | Imprint | This part of the site doesn't use cookies.