->
request( 'POST',
'/store-api/account/register',
[],
[],
['CONTENT_TYPE' => 'application/json'
],
json_encode($registrationData, \JSON_THROW_ON_ERROR
) );
$response =
json_decode((string) $this->browser->
getResponse()->
getContent(), true, 512, \JSON_THROW_ON_ERROR
);
$customerDefinition =
new CustomerDefinition();
static::
assertArrayHasKey('accountType',
$customerDefinition->
getDefaults());
static::
assertSame($customerDefinition->
getDefaults()['accountType'
],
$response['accountType'
]);
static::
assertNotEmpty($this->browser->
getResponse()->headers->
get(PlatformRequest::HEADER_CONTEXT_TOKEN
));
$this->browser
->
request( 'POST',
'/store-api/account/login',
[],
[],
[