File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1010use JsonApiPhp \JsonApi \Link \LastLink ;
1111use JsonApiPhp \JsonApi \Link \NextLink ;
1212use JsonApiPhp \JsonApi \Link \PrevLink ;
13+ use JsonApiPhp \JsonApi \Link \SelfLink ;
1314use JsonApiPhp \JsonApi \PaginatedCollection ;
1415use JsonApiPhp \JsonApi \Pagination ;
1516use JsonApiPhp \JsonApi \ResourceCollection ;
@@ -33,7 +34,8 @@ public function testPaginatedResourceCollection()
3334 "first": "http://example.com/fruits?page=first",
3435 "last": "http://example.com/fruits?page=last",
3536 "prev": "http://example.com/fruits?page=3",
36- "next": "http://example.com/fruits?page=5"
37+ "next": "http://example.com/fruits?page=5",
38+ "self": "http://example.com/fruits?page=4"
3739 }
3840 }
3941 ' ,
@@ -49,7 +51,8 @@ public function testPaginatedResourceCollection()
4951 new ResourceObject ('apples ' , '1 ' ),
5052 new ResourceObject ('apples ' , '2 ' )
5153 )
52- )
54+ ),
55+ new SelfLink ('http://example.com/fruits?page=4 ' )
5356 )
5457 );
5558 }
You can’t perform that action at this time.
0 commit comments