frwShouldRun example

/** @var CurrencyEntity $defaultCurrency */
        $defaultCurrency = $this->currencyRepository->search(new Criteria([Defaults::CURRENCY])$context)->first();

        return $this->render($template[
            'features' => Feature::getAll(),
            'systemLanguageId' => Defaults::LANGUAGE_SYSTEM,
            'defaultLanguageIds' => [Defaults::LANGUAGE_SYSTEM],
            'systemCurrencyId' => Defaults::CURRENCY,
            'disableExtensions' => EnvironmentHelper::getVariable('DISABLE_EXTENSIONS', false),
            'systemCurrencyISOCode' => $defaultCurrency->getIsoCode(),
            'liveVersionId' => Defaults::LIVE_VERSION,
            'firstRunWizard' => $this->firstRunWizardService->frwShouldRun(),
            'apiVersion' => $this->getLatestApiVersion(),
            'cspNonce' => $request->attributes->get(PlatformRequest::ATTRIBUTE_CSP_NONCE),
            'adminEsEnable' => $this->esAdministrationEnabled,
            'storefrontEsEnable' => $this->esStorefrontEnabled,
        ]);
    }

    #[Route(path: '/api/_admin/snippets', name: 'api.admin.snippets', methods: ['GET'])]     public function snippets(Request $request): Response
    {
        $snippets = [];
        


        $frwService->upgradeAccessToken($this->context);
    }

    public function testFrwShouldNotRunIfAutoRunIsDisabled(): void
    {
        $frwService = $this->createFirstRunWizardService(
            autoRun: false,
        );

        static::assertFalse($frwService->frwShouldRun());
    }

    public function testFrwShouldNotRunIfStatusIsCompleted(): void
    {
        $systemConfigService = $this->createMock(SystemConfigService::class);
        $systemConfigService->expects(static::once())
            ->method('getString')
            ->with('core.frw.completedAt')
            ->willReturn((new \DateTimeImmutable())->format(Defaults::STORAGE_DATE_TIME_FORMAT));

        $frwService = $this->createFirstRunWizardService(
            
Home | Imprint | This part of the site doesn't use cookies.