static::
assertNotSame(204,
$this->browser->
getResponse()->
getStatusCode());
$response =
json_decode((string) $this->browser->
getResponse()->
getContent(), true, 512, \JSON_THROW_ON_ERROR
);
static::
assertSame('CHECKOUT__CUSTOMER_ADDRESS_IS_ACTIVE',
$response['errors'
][0
]['code'
]);
} public function testDeleteNewCreatedAddressGuest(): void
{ $customerId =
$this->
createCustomer(null, true
);
$context =
$this->
getLoggedInContextToken($customerId,
$this->ids->
get('sales-channel'
));
$this->browser->
setServerParameter('HTTP_SW_CONTEXT_TOKEN',
$context);
// Create
$data =
[ 'salutationId' =>
$this->
getValidSalutationId(),
'firstName' => 'Test',
'lastName' => 'Test',
'street' => 'Test',
'city' => 'Test',
'zipcode' => 'Test',
'countryId' =>
$this->
getValidCountryId(),
];