],
],
],
];
$configReader =
$this->
createMock(ConfigReader::
class);
$configReader->
method('getConfigFromBundle'
)->
willReturn($config);
$service =
new ConfigurationService( [ new SwagExampleTest(true, ''
),
],
$configReader,
$this->
createMock(AppLoader::
class),
new StaticEntityRepository([new AppCollection()]),
new StaticSystemConfigService([]) );
$actualConfig =
$service->
getConfiguration('SwagExampleTest', Context::
createDefaultContext());
static::
assertCount(1,
$actualConfig);
static::
assertCount(1,
$actualConfig[0
]['elements'
]);