CodeExplorer TaxProviderPayloadService example
static::
assertNotFalse($responseContent);
$response =
new Response(200,
[],
$responseContent);
$client =
static::
createMock(Client::
class);
$client ->
expects(static::
once()) ->
method('post'
) ->
with($url,
static::
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