Skip to content

Commit 937e197

Browse files
committed
fix behat
1 parent c061263 commit 937e197

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

features/main/subresource.feature

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -342,33 +342,9 @@ Feature: Subresource support
342342
}
343343
"""
344344

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-
"""
368345

369-
@dropSchema
370346
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
372348
When I send a "GET" request to "/related_owned_dummies/1/owning_dummy"
373349
And the response status code should be 200
374350
And the response should be in JSON
@@ -383,7 +359,7 @@ Feature: Subresource support
383359
}
384360
"""
385361

386-
@dropSchema
362+
387363
Scenario: The OneToOne subresource should be accessible from owning side
388364
Given there is a RelatedOwningDummy object with OneToOne relation
389365
When I send a "GET" request to "/related_owning_dummies/1/owned_dummy"
@@ -399,3 +375,28 @@ Feature: Subresource support
399375
"id": 1
400376
}
401377
"""
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

Comments
 (0)