$container->
get(AccountLoginPageLoader::
class),
$container->
get(RegisterRoute::
class),
$container->
get(RegisterConfirmRoute::
class),
$container->
get(CartService::
class),
$container->
get(CheckoutRegisterPageLoader::
class),
$mock,
$customerRepository,
$this->
createMock(CustomerGroupRegistrationPageLoader::
class),
$container->
get('sales_channel_domain.repository'
) );
$data =
$this->
getRegistrationData();
$request =
$this->
createRequest();
$response =
$registerController->
register($request,
$data,
$this->salesChannelContext
);
$customers =
$this->
getContainer()->
get(Connection::
class) ->
fetchAllAssociative('SELECT * FROM customer WHERE email = :mail',
['mail' =>
$data->
get('email'
)]);
static::
assertEquals(200,
$response->
getStatusCode());
static::
assertCount(1,
$customers);
}