public function testWithValidConfig(): void
{ $customerGroupRepository =
$this->
getContainer()->
get('customer_group.repository'
);
$customerGroupRepository->
create([ [ 'id' =>
$this->ids->
create('group'
),
'name' => 'foo',
'registrationActive' => true,
'registrationTitle' => 'test',
'registrationSalesChannels' =>
[['id' =>
$this->
getSalesChannelApiSalesChannelId()]],
],
], Context::
createDefaultContext());
$this->browser
->
request( 'GET',
'/store-api/customer-group-registration/config/' .
$this->ids->
get('group'
) );
$response =
json_decode($this->browser->
getResponse()->
getContent() ?: '', true, 512, \JSON_THROW_ON_ERROR
);
static::
assertSame(200,
$this->browser->
getResponse()->
getStatusCode());