File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -748,9 +748,13 @@ public function test_build_wp_api_client_fixtures() {
748748 'CommentsCollection.0._links.self.0.href ' => 'http://example.org/index.php?rest_route=/wp/v2/comments/2 ' ,
749749 'CommentsCollection.0._links.collection.0.href ' => 'http://example.org/index.php?rest_route=/wp/v2/comments ' ,
750750 'CommentsCollection.0._links.up.0.href ' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4 ' ,
751+ 'CommentsCollection.0.post_details.id ' => 4 ,
752+ 'CommentsCollection.0.post_details.link ' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4 ' ,
751753 'CommentModel.id ' => 2 ,
752754 'CommentModel.post ' => 4 ,
753755 'CommentModel.link ' => 'http://example.org/?p=4#comment-2 ' ,
756+ 'CommentModel.post_details.id ' => 4 ,
757+ 'CommentModel.post_details.link ' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4 ' ,
754758 'settings.title ' => 'Test Blog ' ,
755759 'settings.url ' => 'http://example.org ' ,
756760 'settings.email ' => 'admin@example.org ' ,
Original file line number Diff line number Diff line change @@ -10443,7 +10443,6 @@ mockedApiResponse.Schema = {
1044310443 "required": false
1044410444 },
1044510445 "post_details": {
10446- "default": [],
1044710446 "description": "An array of post details.",
1044810447 "type": "array",
1044910448 "required": false
@@ -14054,10 +14053,10 @@ mockedApiResponse.CommentsCollection = [
1405414053 "status": "approved",
1405514054 "type": "comment",
1405614055 "post_details": {
14057- "id": 37283 ,
14056+ "id": 4 ,
1405814057 "title": "REST API Client Fixture: Post",
1405914058 "type": "post",
14060- "link": "http://example.org/index.php?rest_route=/wp/v2/posts/37283 "
14059+ "link": "http://example.org/index.php?rest_route=/wp/v2/posts/4 "
1406114060 },
1406214061 "i_replied": false,
1406314062 "can_moderate": true,
@@ -14116,10 +14115,10 @@ mockedApiResponse.CommentModel = {
1411614115 "status": "approved",
1411714116 "type": "comment",
1411814117 "post_details": {
14119- "id": 37283 ,
14118+ "id": 4 ,
1412014119 "title": "REST API Client Fixture: Post",
1412114120 "type": "post",
14122- "link": "http://example.org/index.php?rest_route=/wp/v2/posts/37283 "
14121+ "link": "http://example.org/index.php?rest_route=/wp/v2/posts/4 "
1412314122 },
1412414123 "i_replied": false,
1412514124 "can_moderate": true,
You can’t perform that action at this time.
0 commit comments