@@ -313,7 +313,7 @@ public function testCreateWithMaxDepthMultipleSubresources()
313
313
{
314
314
/**
315
315
* DummyEntity -subresource-> RelatedDummyEntity -anotherSubresource-> DummyEntity
316
- * DummyEntity -secondSubresource-> dummyValidatedEntity -moreSubresource-> RelatedDummyEntity
316
+ * DummyEntity -secondSubresource-> dummyValidatedEntity -moreSubresource-> RelatedDummyEntity.
317
317
*/
318
318
$ resourceMetadataFactoryProphecy = $ this ->prophesize (ResourceMetadataFactoryInterface::class);
319
319
$ resourceMetadataFactoryProphecy ->create (RelatedDummyEntity::class)->shouldBeCalled ()->willReturn (new ResourceMetadata ('relatedDummyEntity ' ));
@@ -349,45 +349,45 @@ public function testCreateWithMaxDepthMultipleSubresources()
349
349
$ propertyMetadataFactoryProphecy ->reveal (),
350
350
$ pathSegmentNameGeneratorProphecy ->reveal ()
351
351
);
352
-
352
+
353
353
$ this ->assertEquals ([
354
354
'api_dummy_entities_subresource_get_subresource ' => [
355
- 'property ' => 'subresource ' ,
356
- 'collection ' => false ,
357
- 'resource_class ' => RelatedDummyEntity::class,
358
- 'shortNames ' => ['relatedDummyEntity ' , 'dummyEntity ' ],
359
- 'identifiers ' => [
360
- ['id ' , DummyEntity::class, true ],
361
- ],
362
- 'route_name ' => 'api_dummy_entities_subresource_get_subresource ' ,
363
- 'path ' => '/dummy_entities/{id}/subresources.{_format} ' ,
364
- 'operation_name ' => 'subresource_get_subresource ' ,
365
- ] + SubresourceOperationFactory::ROUTE_OPTIONS ,
355
+ 'property ' => 'subresource ' ,
356
+ 'collection ' => false ,
357
+ 'resource_class ' => RelatedDummyEntity::class,
358
+ 'shortNames ' => ['relatedDummyEntity ' , 'dummyEntity ' ],
359
+ 'identifiers ' => [
360
+ ['id ' , DummyEntity::class, true ],
361
+ ],
362
+ 'route_name ' => 'api_dummy_entities_subresource_get_subresource ' ,
363
+ 'path ' => '/dummy_entities/{id}/subresources.{_format} ' ,
364
+ 'operation_name ' => 'subresource_get_subresource ' ,
365
+ ] + SubresourceOperationFactory::ROUTE_OPTIONS ,
366
366
'api_dummy_entities_second_subresource_get_subresource ' => [
367
- 'property ' => 'secondSubresource ' ,
368
- 'collection ' => false ,
369
- 'resource_class ' => DummyValidatedEntity::class,
370
- 'shortNames ' => ['dummyValidatedEntity ' , 'dummyEntity ' ],
371
- 'identifiers ' => [
372
- ['id ' , DummyEntity::class, true ],
373
- ],
374
- 'route_name ' => 'api_dummy_entities_second_subresource_get_subresource ' ,
375
- 'path ' => '/dummy_entities/{id}/second_subresources.{_format} ' ,
376
- 'operation_name ' => 'second_subresource_get_subresource ' ,
377
- ] + SubresourceOperationFactory::ROUTE_OPTIONS ,
367
+ 'property ' => 'secondSubresource ' ,
368
+ 'collection ' => false ,
369
+ 'resource_class ' => DummyValidatedEntity::class,
370
+ 'shortNames ' => ['dummyValidatedEntity ' , 'dummyEntity ' ],
371
+ 'identifiers ' => [
372
+ ['id ' , DummyEntity::class, true ],
373
+ ],
374
+ 'route_name ' => 'api_dummy_entities_second_subresource_get_subresource ' ,
375
+ 'path ' => '/dummy_entities/{id}/second_subresources.{_format} ' ,
376
+ 'operation_name ' => 'second_subresource_get_subresource ' ,
377
+ ] + SubresourceOperationFactory::ROUTE_OPTIONS ,
378
378
'api_dummy_entities_second_subresource_more_subresource_get_subresource ' => [
379
- 'property ' => 'moreSubresource ' ,
380
- 'collection ' => false ,
381
- 'resource_class ' => RelatedDummyEntity::class,
382
- 'shortNames ' => ['relatedDummyEntity ' , 'dummyValidatedEntity ' ],
383
- 'identifiers ' => [
384
- ['id ' , DummyEntity::class, true ],
385
- ['secondSubresource ' , DummyValidatedEntity::class, false ]
386
- ],
387
- 'route_name ' => 'api_dummy_entities_second_subresource_more_subresource_get_subresource ' ,
388
- 'path ' => '/dummy_entities/{id}/second_subresources/mode_subresources.{_format} ' ,
389
- 'operation_name ' => 'second_subresource_more_subresource_get_subresource ' ,
390
- ] + SubresourceOperationFactory::ROUTE_OPTIONS ,
379
+ 'property ' => 'moreSubresource ' ,
380
+ 'collection ' => false ,
381
+ 'resource_class ' => RelatedDummyEntity::class,
382
+ 'shortNames ' => ['relatedDummyEntity ' , 'dummyValidatedEntity ' ],
383
+ 'identifiers ' => [
384
+ ['id ' , DummyEntity::class, true ],
385
+ ['secondSubresource ' , DummyValidatedEntity::class, false ],
386
+ ],
387
+ 'route_name ' => 'api_dummy_entities_second_subresource_more_subresource_get_subresource ' ,
388
+ 'path ' => '/dummy_entities/{id}/second_subresources/mode_subresources.{_format} ' ,
389
+ 'operation_name ' => 'second_subresource_more_subresource_get_subresource ' ,
390
+ ] + SubresourceOperationFactory::ROUTE_OPTIONS ,
391
391
], $ subresourceOperationFactory ->create (DummyEntity::class));
392
392
}
393
393
0 commit comments