$service =
new ConfigurationService( [ new SwagExampleTest(true, ''
),
],
$configReader,
$this->
createMock(AppLoader::
class),
new StaticEntityRepository([new AppCollection()]),
new StaticSystemConfigService(['SwagExampleTest.email' => 'foo'
]) );
$actualConfig =
$service->
getResolvedConfiguration('SwagExampleTest', Context::
createDefaultContext());
static::
assertCount(2,
$actualConfig);
static::
assertCount(1,
$actualConfig[0
]['elements'
]);
static::
assertSame('SwagExampleTest.email',
$actualConfig[0
]['elements'
][0
]['name'
]);
static::
assertSame('foo',
$actualConfig[0
]['elements'
][0
]['value'
]);
} /**
* @param array<mixed> $config
*
* @return array<mixed>
*/