FirstRunWizardClient example


    }

    public function testFrwLoginFailsIfContextSourceIsNotAdminApi(): void
    {
        $context = Context::createDefaultContext();

        $client = $this->createMock(ClientInterface::class);
        $client->expects(static::never())
            ->method('request');

        $frwClient = new FirstRunWizardClient(
            $client,
            $this->createMock(AbstractStoreRequestOptionsProvider::class),
            $this->createMock(InstanceService::class)
        );

        $this->expectException(\RuntimeException::class);
        $frwClient->frwLogin('shopwareId', 'password', $context);
    }

    public function testFrwLoginFailsIfAdminApiSourceHasNoUserId(): void
    {
        
Home | Imprint | This part of the site doesn't use cookies.