$this->customerGroupRepository =
$this->
getContainer()->
get('customer_group.repository'
);
$this->paymentMethodRepository =
$this->
getContainer()->
get('payment_method.repository'
);
$this->salesChannelRepository =
$this->
getContainer()->
get('sales_channel.repository'
);
$this->customerRepository =
$this->
getContainer()->
get('customer.repository'
);
$serializerRegistry =
$this->
getContainer()->
get(SerializerRegistry::
class);
$this->serializer =
new CustomerSerializer( $this->customerGroupRepository,
$this->paymentMethodRepository,
$this->salesChannelRepository
);
$this->serializer->
setRegistry($serializerRegistry);
} public function testSimple(): void
{ $salesChannel =
$this->
createSalesChannel();
$this->
createCustomerGroup();
$this->
createPaymentMethod();
$config =
new Config([],
[],
[]);
$customer =
[ 'group' =>
[