public function testGetCustomerRecoveryNotFound(): void
{ $customerRecoveryRoute =
$this->
getContainer()->
get(CustomerRecoveryIsExpiredRoute::
class);
$token = Uuid::
randomHex();
$context =
$this->
getContainer()->
get(SalesChannelContextFactory::
class)->
create($token, TestDefaults::SALES_CHANNEL
);
static::
expectException(CustomerNotFoundByHashException::
class);
$customerRecoveryRoute->
load(new RequestDataBag(['hash' => Random::
getAlphanumericString(32
)]),
$context);
} public function testGetCustomerRecoveryInvalidHash(): void
{ $customerRecoveryRoute =
$this->
getContainer()->
get(CustomerRecoveryIsExpiredRoute::
class);
$token = Uuid::
randomHex();
$context =
$this->
getContainer()->
get(SalesChannelContextFactory::
class)->
create($token, TestDefaults::SALES_CHANNEL
);
static::
expectException(ConstraintViolationException::
class);