'domains' =>
[ [ 'url' => 'https://test.de',
'currencyId' => Defaults::CURRENCY,
'languageId' => Defaults::LANGUAGE_SYSTEM,
'snippetSetId' =>
$this->
getRandomId('snippet_set'
),
],
],
]);
$this->
createCustomerOfSalesChannel($context->
getSalesChannel()->
getId(),
$email);
$customer =
$this->accountService->
getCustomerByLogin($email, 'shopware',
$context);
static::
assertEquals($email,
$customer->
getEmail());
static::
assertEquals($context->
getSalesChannel()->
getId(),
$customer->
getSalesChannelId());
} public function testGetCustomerByLoginWithInvalidPassword(): void
{ $this->
expectException(BadCredentialsException::
class);
$email = 'johndoe@example.com';
$context =
$this->
createSalesChannelContext([