TaxProviderPayloadService example

static::assertNotFalse($responseContent);
        $response = new Response(200, []$responseContent);

        $client = static::createMock(Client::class);
        $client
            ->expects(static::once())
            ->method('post')
            ->with($urlstatic::isType('array'))
            ->willReturn($response);

        $taxProviderPayloadService = new TaxProviderPayloadService(
            $appPayloadServiceHelper,
            $client,
            'https://test-shop.com'
        );

        $cart = new Cart($this->ids->get('cart'));
        $salesChannelContext = static::createMock(SalesChannelContext::class);
        $payload = new TaxProviderPayload($cart$salesChannelContext);

        $app = static::createMock(AppEntity::class);
        $app
            
Home | Imprint | This part of the site doesn't use cookies.