$salesChannelContext =
$this->
createSalesChannelContext([ 'domains' =>
[ [ 'languageId' => Defaults::LANGUAGE_SYSTEM,
'currencyId' => Defaults::CURRENCY,
'snippetSetId' =>
$this->
getSnippetSetIdForLocale('en-GB'
),
'url' => 'http://localhost2',
],
],
]);
$this->
createCustomerOfSalesChannel($salesChannelContext->
getSalesChannel()->
getId(),
$newEmail);
$this->browser
->
request( 'POST',
'/store-api/account/change-email',
[ 'password' => 'shopware',
'email' =>
$newEmail,
'emailConfirmation' =>
$newEmail,
] );