@@ -368,34 +368,34 @@ Feature: Subresource support
368
368
369
369
@dropSchema
370
370
Scenario : The OneToOne subresource should be accessible from owned side
371
- Given there is a RelatedOwnedDummy and a RelatedOwningDummy object with OneToOne bidirectional relation
372
- When I send a "GET" request to "/related_owned_dummies/1/related_owning_dummy "
371
+ @ Given there is a RelatedOwnedDummy object with OneToOne relation
372
+ When I send a "GET" request to "/related_owned_dummies/1/owning_dummy "
373
373
And the response status code should be 200
374
374
And the response should be in JSON
375
375
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
376
376
And the JSON should be equal to:
377
377
"""
378
378
{
379
- "@context": "/contexts/RelatedOwningDummy ",
380
- "@id": "/related_owning_dummies /1",
381
- "@type": "RelatedOwningDummy ",
379
+ "@context": "/contexts/Dummy ",
380
+ "@id": "/dummies /1",
381
+ "@type": "Dummy ",
382
382
"id": 1
383
383
}
384
384
"""
385
385
386
386
@dropSchema
387
387
Scenario : The OneToOne subresource should be accessible from owning side
388
- Given there is a RelatedOwnedDummy and a RelatedOwningDummy object with OneToOne bidirectional relation
389
- When I send a "GET" request to "/related_owning_dummies/1/related_owned_dummy "
388
+ Given there is a RelatedOwningDummy object with OneToOne relation
389
+ When I send a "GET" request to "/related_owning_dummies/1/owned_dummy "
390
390
And the response status code should be 200
391
391
And the response should be in JSON
392
392
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
393
393
And the JSON should be equal to:
394
394
"""
395
395
{
396
- "@context": "/contexts/RelatedOwnedDummy ",
397
- "@id": "/related_owned_dummies /1",
398
- "@type": "RelatedOwnedDummy ",
396
+ "@context": "/contexts/Dummy ",
397
+ "@id": "/dummies /1",
398
+ "@type": "Dummy ",
399
399
"id": 1
400
400
}
401
401
"""
0 commit comments