-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e48921
commit da975ac
Showing
17 changed files
with
63 additions
and
516 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,13 +41,9 @@ public function toAttributes($request): array | |
'name' => 'Tim', | ||
'email' => '[email protected]', | ||
], | ||
'relationships' => [], | ||
'meta' => [], | ||
'links' => [], | ||
], | ||
'jsonapi' => [ | ||
'version' => '1.0', | ||
'meta' => [], | ||
], | ||
'included' => [], | ||
]); | ||
|
@@ -84,13 +80,9 @@ public function toAttributes($request): array | |
'name' => 'Tim', | ||
'location' => 'Melbourne', | ||
], | ||
'relationships' => [], | ||
'links' => [], | ||
'meta' => [], | ||
], | ||
'jsonapi' => [ | ||
'version' => '1.0', | ||
'meta' => [], | ||
], | ||
'included' => [], | ||
]); | ||
|
@@ -123,14 +115,9 @@ public function toAttributes($request): array | |
'data' => [ | ||
'id' => 'expected-id', | ||
'type' => 'basicModels', | ||
'attributes' => [], | ||
'relationships' => [], | ||
'meta' => [], | ||
'links' => [], | ||
], | ||
'jsonapi' => [ | ||
'version' => '1.0', | ||
'meta' => [], | ||
], | ||
'included' => [], | ||
]); | ||
|
@@ -162,13 +149,9 @@ public function toAttributes($request): array | |
'attributes' => [ | ||
'location' => 'Melbourne', | ||
], | ||
'relationships' => [], | ||
'links' => [], | ||
'meta' => [], | ||
], | ||
'jsonapi' => [ | ||
'version' => '1.0', | ||
'meta' => [], | ||
], | ||
'included' => [], | ||
]); | ||
|
@@ -196,14 +179,9 @@ public function toAttributes($request): array | |
'data' => [ | ||
'id' => 'expected-id', | ||
'type' => 'basicModels', | ||
'attributes' => [], | ||
'relationships' => [], | ||
'links' => [], | ||
'meta' => [], | ||
], | ||
'jsonapi' => [ | ||
'version' => '1.0', | ||
'meta' => [], | ||
], | ||
'included' => [], | ||
]); | ||
|
@@ -252,14 +230,9 @@ public function testItCanSpecifyMinimalAttributes(): void | |
'data' => [ | ||
'type' => 'basicModels', | ||
'id' => 'user-id', | ||
'attributes' => [], | ||
'relationships' => [], | ||
'meta' => [], | ||
'links' => [], | ||
], | ||
'jsonapi' => [ | ||
'version' => '1.0', | ||
'meta' => [], | ||
], | ||
'included' => [], | ||
]); | ||
|
@@ -287,13 +260,9 @@ public function testItCanRequestAttributesWhenUsingMinimalAttributes() | |
'attributes' => [ | ||
'name' => 'user-name', | ||
], | ||
'relationships' => [], | ||
'meta' => [], | ||
'links' => [], | ||
], | ||
'jsonapi' => [ | ||
'version' => '1.0', | ||
'meta' => [], | ||
], | ||
'included' => [], | ||
]); | ||
|
@@ -327,31 +296,23 @@ public function testItCanUseSparseFieldsetsWithIncludedCollections(): void | |
'data' => [ | ||
'id' => 'user-id', | ||
'type' => 'basicModels', | ||
'attributes' => [], | ||
'relationships' => [ | ||
'posts' => [ | ||
'data' => [ | ||
[ | ||
'id' => 'post-id-1', | ||
'meta' => [], | ||
'type' => 'basicModels', | ||
], | ||
[ | ||
'id' => 'post-id-2', | ||
'meta' => [], | ||
'type' => 'basicModels', | ||
], | ||
], | ||
'links' => [], | ||
'meta' => [], | ||
], | ||
], | ||
'meta' => [], | ||
'links' => [], | ||
], | ||
'jsonapi' => [ | ||
'version' => '1.0', | ||
'meta' => [], | ||
], | ||
'included' => [ | ||
[ | ||
|
@@ -360,19 +321,13 @@ public function testItCanUseSparseFieldsetsWithIncludedCollections(): void | |
'attributes' => [ | ||
'title' => 'post-title-1', | ||
], | ||
'relationships' => [], | ||
'links' => [], | ||
'meta' => [], | ||
], | ||
[ | ||
'id' => 'post-id-2', | ||
'type' => 'basicModels', | ||
'attributes' => [ | ||
'title' => 'post-title-2', | ||
], | ||
'relationships' => [], | ||
'links' => [], | ||
'meta' => [], | ||
], | ||
], | ||
]); | ||
|
@@ -408,13 +363,9 @@ public function toAttributes($request): array | |
'attributes' => [ | ||
'email' => '[email protected]', | ||
], | ||
'relationships' => [], | ||
'meta' => [], | ||
'links' => [], | ||
], | ||
'jsonapi' => [ | ||
'version' => '1.0', | ||
'meta' => [], | ||
], | ||
'included' => [], | ||
]); | ||
|
@@ -452,13 +403,9 @@ public function toAttributes($request): array | |
'email' => '[email protected]', | ||
'address' => '123 fake street', | ||
], | ||
'relationships' => [], | ||
'meta' => [], | ||
'links' => [], | ||
], | ||
'jsonapi' => [ | ||
'version' => '1.0', | ||
'meta' => [], | ||
], | ||
'included' => [], | ||
]); | ||
|
@@ -497,13 +444,9 @@ public function toAttributes($request): array | |
'email' => '[email protected]', | ||
'address' => '123 fake street', | ||
], | ||
'relationships' => [], | ||
'meta' => [], | ||
'links' => [], | ||
], | ||
'jsonapi' => [ | ||
'version' => '1.0', | ||
'meta' => [], | ||
], | ||
'included' => [], | ||
]); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.