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 10
10
use JsonApiPhp \JsonApi \Link \LastLink ;
11
11
use JsonApiPhp \JsonApi \Link \NextLink ;
12
12
use JsonApiPhp \JsonApi \Link \PrevLink ;
13
+ use JsonApiPhp \JsonApi \Link \SelfLink ;
13
14
use JsonApiPhp \JsonApi \PaginatedCollection ;
14
15
use JsonApiPhp \JsonApi \Pagination ;
15
16
use JsonApiPhp \JsonApi \ResourceCollection ;
@@ -33,7 +34,8 @@ public function testPaginatedResourceCollection()
33
34
"first": "http://example.com/fruits?page=first",
34
35
"last": "http://example.com/fruits?page=last",
35
36
"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"
37
39
}
38
40
}
39
41
' ,
@@ -49,7 +51,8 @@ public function testPaginatedResourceCollection()
49
51
new ResourceObject ('apples ' , '1 ' ),
50
52
new ResourceObject ('apples ' , '2 ' )
51
53
)
52
- )
54
+ ),
55
+ new SelfLink ('http://example.com/fruits?page=4 ' )
53
56
)
54
57
);
55
58
}
You can’t perform that action at this time.
0 commit comments