createFrwClient example



    public function testFrwLogin(): void
    {
        $firstRunWizardUserToken = [
            'firstRunWizardUserToken' => [
                'token' => 'frw-us3r-t0k3n',
                'expirationDate' => (new \DateTimeImmutable('2021-01-01 00:00:00'))->format(Defaults::STORAGE_DATE_TIME_FORMAT),
            ],
        ];

        $frwClient = $this->createFrwClient(
            [
                Request::METHOD_POST,
                '/swplatform/firstrunwizard/login',
                [
                    'json' => [
                        'shopwareId' => 'j.doe@shopware.com',
                        'password' => 'p4ssw0rd',
                    ],
                    'query' => [],
                ],
            ],
            
Home | Imprint | This part of the site doesn't use cookies.