@@ -342,33 +342,9 @@ Feature: Subresource support
342
342
}
343
343
"""
344
344
345
- @dropSchema
346
- Scenario : Recursive resource
347
- When I send a "GET" request to "/dummy_products/2"
348
- And the response status code should be 200
349
- And the response should be in JSON
350
- And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
351
- And the JSON should be equal to:
352
- """
353
- {+
354
- "@context": "/contexts/DummyProduct",
355
- "@id": "/dummy_products/2",
356
- "@type": "DummyProduct",
357
- "offers": [
358
- "/dummy_aggregate_offers/1"
359
- ],
360
- "id": 2,
361
- "name": "Dummy product",
362
- "relatedProducts": [
363
- "/dummy_products/1"
364
- ],
365
- "parent": null
366
- }
367
- """
368
345
369
- @dropSchema
370
346
Scenario : The OneToOne subresource should be accessible from owned side
371
- @ Given there is a RelatedOwnedDummy object with OneToOne relation
347
+ Given there is a RelatedOwnedDummy object with OneToOne relation
372
348
When I send a "GET" request to "/related_owned_dummies/1/owning_dummy"
373
349
And the response status code should be 200
374
350
And the response should be in JSON
@@ -383,7 +359,7 @@ Feature: Subresource support
383
359
}
384
360
"""
385
361
386
- @dropSchema
362
+
387
363
Scenario : The OneToOne subresource should be accessible from owning side
388
364
Given there is a RelatedOwningDummy object with OneToOne relation
389
365
When I send a "GET" request to "/related_owning_dummies/1/owned_dummy"
@@ -399,3 +375,28 @@ Feature: Subresource support
399
375
"id": 1
400
376
}
401
377
"""
378
+
379
+ @dropSchema
380
+ Scenario : Recursive resource
381
+ When I send a "GET" request to "/dummy_products/2"
382
+ And the response status code should be 200
383
+ And the response should be in JSON
384
+ And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
385
+ And the JSON should be equal to:
386
+ """
387
+ {+
388
+ "@context": "/contexts/DummyProduct",
389
+ "@id": "/dummy_products/2",
390
+ "@type": "DummyProduct",
391
+ "offers": [
392
+ "/dummy_aggregate_offers/1"
393
+ ],
394
+ "id": 2,
395
+ "name": "Dummy product",
396
+ "relatedProducts": [
397
+ "/dummy_products/1"
398
+ ],
399
+ "parent": null
400
+ }
401
+ """
402
+
0 commit comments