#[Package('checkout')]
class CustomerEmailUniqueValidatorTest extends TestCase
{ use IntegrationTestBehaviour;
use SalesChannelApiTestBehaviour;
public function testSameCustomerEmailWithExistedBoundAccount(): void
{ $email = 'john.doe@example.com';
$salesChannelContext1 =
$this->
createSalesChannelContext();
$this->
createCustomerOfSalesChannel($salesChannelContext1->
getSalesChannel()->
getId(),
$email);
$salesChannelParameters =
[ 'domains' =>
[ [ 'languageId' => Defaults::LANGUAGE_SYSTEM,
'currencyId' => Defaults::CURRENCY,
'snippetSetId' =>
$this->
getSnippetSetIdForLocale('en-GB'
),
'url' => 'http://localhost2',
],
],
];