static::
assertEquals('This value should be of type string.',
$mapped['/paymentMethodId'
]);
static::
assertEquals('This value should be of type string.',
$mapped['/shippingMethodId'
]);
static::
assertEquals('This value should be of type string.',
$mapped['/countryId'
]);
static::
assertEquals('This value should be of type string.',
$mapped['/countryStateId'
]);
static::
assertEquals('This value should be of type string.',
$mapped['/languageId'
]);
} public function testUpdateContextWithLoggedInCustomerAndNonExistingAddresses(): void
{ $testId = Uuid::
randomHex();
$this->
createCustomerAndLogin();
/*
* Billing address
*/
$this->
getSalesChannelBrowser()->
request('PATCH', '/store-api/context',
['billingAddressId' =>
$testId]);
static::
assertSame(Response::HTTP_BAD_REQUEST,
$this->
getSalesChannelBrowser()->
getResponse()->
getStatusCode());
$content =
json_decode($this->
getSalesChannelBrowser()->
getResponse()->
getContent() ?: '', true, 512, \JSON_THROW_ON_ERROR
);
static::
assertEquals( sprintf('The "customer_address" entity with id "%s" does not exist.',
$testId),