@@ -159,6 +159,7 @@ final public function testResourcesParametersResolution()
159
159
{
160
160
$ containerProphecy = $ this ->prophesize (ContainerInterface::class);
161
161
$ containerProphecy ->get ('dummy_class ' )->willReturn (\ApiPlatform \Core \Tests \Fixtures \TestBundle \Entity \Dummy::class);
162
+ $ containerProphecy ->getParameter ('dummy_related_owned_class ' )->willReturn (\ApiPlatform \Core \Tests \Fixtures \TestBundle \Entity \RelatedOwnedDummy::class);
162
163
$ containerProphecy ->get ('file_config_dummy_class ' )->willReturn (\ApiPlatform \Core \Tests \Fixtures \TestBundle \Entity \FileConfigDummy::class);
163
164
164
165
$ resources = $ this ->createExtractor ([$ this ->getResourceWithParametersFile ()], $ containerProphecy ->reveal ())->getResources ();
@@ -173,7 +174,11 @@ final public function testResourcesParametersResolution()
173
174
'subresourceOperations ' => null ,
174
175
'graphql ' => null ,
175
176
'attributes ' => null ,
176
- 'properties ' => null ,
177
+ 'properties ' => [
178
+ 'relatedOwnedDummy ' => [
179
+ 'resourceClass ' => \ApiPlatform \Core \Tests \Fixtures \TestBundle \Entity \RelatedOwnedDummy::class,
180
+ ],
181
+ ],
177
182
],
178
183
'\ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\DummyBis ' => [
179
184
'shortName ' => null ,
@@ -285,6 +290,7 @@ final public function testResourcesParametersResolutionWithTheSymfonyContainer()
285
290
{
286
291
$ containerProphecy = $ this ->prophesize (SymfonyContainerInterface::class);
287
292
$ containerProphecy ->getParameter ('dummy_class ' )->willReturn (\ApiPlatform \Core \Tests \Fixtures \TestBundle \Entity \Dummy::class);
293
+ $ containerProphecy ->getParameter ('dummy_related_owned_class ' )->willReturn (\ApiPlatform \Core \Tests \Fixtures \TestBundle \Entity \RelatedOwnedDummy::class);
288
294
$ containerProphecy ->getParameter ('file_config_dummy_class ' )->willReturn (\ApiPlatform \Core \Tests \Fixtures \TestBundle \Entity \FileConfigDummy::class);
289
295
290
296
$ resources = $ this ->createExtractor ([$ this ->getResourceWithParametersFile ()], $ containerProphecy ->reveal ())->getResources ();
@@ -299,7 +305,11 @@ final public function testResourcesParametersResolutionWithTheSymfonyContainer()
299
305
'subresourceOperations ' => null ,
300
306
'graphql ' => null ,
301
307
'attributes ' => null ,
302
- 'properties ' => null ,
308
+ 'properties ' => [
309
+ 'relatedOwnedDummy ' => [
310
+ 'resourceClass ' => \ApiPlatform \Core \Tests \Fixtures \TestBundle \Entity \RelatedOwnedDummy::class,
311
+ ],
312
+ ],
303
313
],
304
314
'\ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\DummyBis ' => [
305
315
'shortName ' => null ,
@@ -421,7 +431,11 @@ final public function testResourcesParametersResolutionWithoutAContainer()
421
431
'subresourceOperations ' => null ,
422
432
'graphql ' => null ,
423
433
'attributes ' => null ,
424
- 'properties ' => null ,
434
+ 'properties ' => [
435
+ 'relatedOwnedDummy ' => [
436
+ 'resourceClass ' => '%dummy_related_owned_class% ' ,
437
+ ],
438
+ ],
425
439
],
426
440
'%dummy_class%Bis ' => [
427
441
'shortName ' => null ,
0 commit comments