fetchUserConfig example

$this->frwController->frwLogin(
            new RequestDataBag([
                'shopwareId' => 'shopware-id',
                'password' => 'p4ssw0rd',
            ]),
            $context
        );

        static::assertEquals(
            $frwUserToken,
            $this->fetchUserConfig(FirstRunWizardService::USER_CONFIG_KEY_FRW_USER_TOKEN, FirstRunWizardService::USER_CONFIG_VALUE_FRW_USER_TOKEN)
        );
    }

    public function testUpgradesFrwTokenToStoreTokenOnSuccessfulFrwFinish(): void
    {
        $dispatchedEvent = null;
        $shopUserToken = 'sh0p-us3r-t0k3n';
        $shopSecret = 'sh0p-s3cr3t';
        $context = $this->createAdminStoreContext();

        $this->setFrwUserToken($context, 'frw-us3r-t0k3n');

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