setFrwUserToken example

$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');

        $this->addEventListener(
            $this->getContainer()->get('event_dispatcher'),
            FirstRunWizardFinishedEvent::class,
            function DFirstRunWizardFinishedEvent $event) use (&$dispatchedEvent): void {
                $dispatchedEvent = $event;
                $event->stopPropagation();
            },
            99999,
        );

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