Skip to content

Commit a49b246

Browse files
committed
Add parsing test with lid member in resource object and resouce identifier object
1 parent cdc0168 commit a49b246

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

tests/Functional/SerializerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public static function jsonapiDataProvider(): array
3535
$requestFiles = [
3636
'14_create_resource_without_id.json',
3737
'15_create_resource_without_id.json',
38+
'16_create_resource_with_lid.json',
3839
];
3940

4041
$filenames = glob($path . '*.json');
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"data": {
3+
"type": "photos",
4+
"lid": "2d81d40d-fa78-4d34-acd1-b66a39a343d5",
5+
"attributes": {
6+
"title": "Ember Hamster",
7+
"src": "http://example.com/images/productivity.png"
8+
},
9+
"relationships": {
10+
"photographer": {
11+
"data": {
12+
"type": "people",
13+
"id": "2d81d40d-fa78-4d34-acd1-b66a39a343d5"
14+
}
15+
}
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)