'isValid' => true
],
json_decode($response->
getContent(), true, 512, \JSON_THROW_ON_ERROR
) );
} public function testCheckCustomerEmailValidWithConstraintException(): void
{ static::
expectException(ConstraintViolationException::
class);
$customer =
$this->
mockCustomer();
$this->
createInstance(new CustomerCollection([$customer]));
$request =
new Request([],
['email' => 'random@email.com'
]);
$this->administrationController->
checkCustomerEmailValid($request,
$this->context
);
} public function testCheckCustomerEmailValidWithBoundSalesChannelIdInvalid(): void
{ if (Feature::
isActive('v6.6.0.0'
)) { $this->
expectException(RoutingException::
class);
} else { $this->
expectException(InvalidRequestParameterException::
class);
}