Changeset 41155
- Timestamp:
- 07/26/2017 04:05:27 AM (8 years ago)
- Location:
- branches/4.8/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8/tests/phpunit/tests/rest-api/rest-schema-setup.php
r40629 r41155 383 383 'PostsCollection.0.guid.rendered' => 'http://example.org/?p=3', 384 384 'PostsCollection.0.link' => 'http://example.org/?p=3', 385 'PostsCollection.0._links.self.0.href' => 'http://example.org/ ?rest_route=/wp/v2/posts/3',386 'PostsCollection.0._links.replies.0.href' => 'http://example.org/ ?rest_route=%2Fwp%2Fv2%2Fcomments&post=3',387 'PostsCollection.0._links.version-history.0.href' => 'http://example.org/ ?rest_route=/wp/v2/posts/3/revisions',388 'PostsCollection.0._links.wp:attachment.0.href' => 'http://example.org/ ?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3',389 'PostsCollection.0._links.wp:term.0.href' => 'http://example.org/ ?rest_route=%2Fwp%2Fv2%2Fcategories&post=3',390 'PostsCollection.0._links.wp:term.1.href' => 'http://example.org/ ?rest_route=%2Fwp%2Fv2%2Ftags&post=3',385 'PostsCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/3', 386 'PostsCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3', 387 'PostsCollection.0._links.version-history.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/3/revisions', 388 'PostsCollection.0._links.wp:attachment.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3', 389 'PostsCollection.0._links.wp:term.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3', 390 'PostsCollection.0._links.wp:term.1.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3', 391 391 'PostModel.id' => 3, 392 392 'PostModel.guid.rendered' => 'http://example.org/?p=3', … … 397 397 'postRevisions.0.slug' => '3-revision-v1', 398 398 'postRevisions.0.guid.rendered' => 'http://example.org/?p=4', 399 'postRevisions.0._links.parent.0.href' => 'http://example.org/ ?rest_route=/wp/v2/posts/3',399 'postRevisions.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/3', 400 400 'revision.author' => 2, 401 401 'revision.id' => 4, … … 406 406 'PagesCollection.0.guid.rendered' => 'http://example.org/?page_id=5', 407 407 'PagesCollection.0.link' => 'http://example.org/?page_id=5', 408 'PagesCollection.0._links.self.0.href' => 'http://example.org/ ?rest_route=/wp/v2/pages/5',409 'PagesCollection.0._links.replies.0.href' => 'http://example.org/ ?rest_route=%2Fwp%2Fv2%2Fcomments&post=5',410 'PagesCollection.0._links.version-history.0.href' => 'http://example.org/ ?rest_route=/wp/v2/pages/5/revisions',411 'PagesCollection.0._links.wp:attachment.0.href' => 'http://example.org/ ?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5',408 'PagesCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/5', 409 'PagesCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5', 410 'PagesCollection.0._links.version-history.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/5/revisions', 411 'PagesCollection.0._links.wp:attachment.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5', 412 412 'PageModel.id' => 5, 413 413 'PageModel.guid.rendered' => 'http://example.org/?page_id=5', … … 418 418 'pageRevisions.0.slug' => '5-revision-v1', 419 419 'pageRevisions.0.guid.rendered' => 'http://example.org/?p=6', 420 'pageRevisions.0._links.parent.0.href' => 'http://example.org/ ?rest_route=/wp/v2/pages/5',420 'pageRevisions.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/5', 421 421 'pageRevision.author' => 2, 422 422 'pageRevision.id' => 6, … … 427 427 'MediaCollection.0.guid.rendered' => 'http://example.org/?attachment_id=7', 428 428 'MediaCollection.0.link' => 'http://example.org/?attachment_id=7', 429 'MediaCollection.0._links.self.0.href' => 'http://example.org/ ?rest_route=/wp/v2/media/7',430 'MediaCollection.0._links.replies.0.href' => 'http://example.org/ ?rest_route=%2Fwp%2Fv2%2Fcomments&post=7',429 'MediaCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/media/7', 430 'MediaCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7', 431 431 'MediaModel.id' => 7, 432 432 'MediaModel.guid.rendered' => 'http://example.org/?attachment_id=7', 433 433 'MediaModel.link' => 'http://example.org/?attachment_id=7', 434 434 'TagsCollection.0.id' => 2, 435 'TagsCollection.0._links.self.0.href' => 'http://example.org/ ?rest_route=/wp/v2/tags/2',436 'TagsCollection.0._links.wp:post_type.0.href' => 'http://example.org/ ?rest_route=%2Fwp%2Fv2%2Fposts&tags=2',435 'TagsCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/tags/2', 436 'TagsCollection.0._links.wp:post_type.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&tags=2', 437 437 'TagModel.id' => 2, 438 438 'UsersCollection.1.id' => 2, 439 439 'UsersCollection.1.link' => 'http://example.org/?author=2', 440 'UsersCollection.1._links.self.0.href' => 'http://example.org/ ?rest_route=/wp/v2/users/2',440 'UsersCollection.1._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/users/2', 441 441 'UserModel.id' => 2, 442 442 'UserModel.link' => 'http://example.org/?author=2', … … 446 446 'CommentsCollection.0.post' => 3, 447 447 'CommentsCollection.0.link' => 'http://example.org/?p=3#comment-2', 448 'CommentsCollection.0._links.self.0.href' => 'http://example.org/ ?rest_route=/wp/v2/comments/2',449 'CommentsCollection.0._links.up.0.href' => 'http://example.org/ ?rest_route=/wp/v2/posts/3',448 'CommentsCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/comments/2', 449 'CommentsCollection.0._links.up.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/3', 450 450 'CommentModel.id' => 2, 451 451 'CommentModel.post' => 3, -
branches/4.8/tests/qunit/fixtures/wp-api-generated.js
r41140 r41155 3569 3569 "self": [ 3570 3570 { 3571 "href": "http://example.org/ ?rest_route=/wp/v2/posts/3"3571 "href": "http://example.org/index.php?rest_route=/wp/v2/posts/3" 3572 3572 } 3573 3573 ], … … 3585 3585 { 3586 3586 "embeddable": true, 3587 "href": "http://example.org/ ?rest_route=%2Fwp%2Fv2%2Fcomments&post=3"3587 "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3" 3588 3588 } 3589 3589 ], 3590 3590 "version-history": [ 3591 3591 { 3592 "href": "http://example.org/ ?rest_route=/wp/v2/posts/3/revisions"3592 "href": "http://example.org/index.php?rest_route=/wp/v2/posts/3/revisions" 3593 3593 } 3594 3594 ], 3595 3595 "wp:attachment": [ 3596 3596 { 3597 "href": "http://example.org/ ?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3"3597 "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3" 3598 3598 } 3599 3599 ], … … 3602 3602 "taxonomy": "category", 3603 3603 "embeddable": true, 3604 "href": "http://example.org/ ?rest_route=%2Fwp%2Fv2%2Fcategories&post=3"3604 "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3" 3605 3605 }, 3606 3606 { 3607 3607 "taxonomy": "post_tag", 3608 3608 "embeddable": true, 3609 "href": "http://example.org/ ?rest_route=%2Fwp%2Fv2%2Ftags&post=3"3609 "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3" 3610 3610 } 3611 3611 ], … … 3684 3684 "parent": [ 3685 3685 { 3686 "href": "http://example.org/ ?rest_route=/wp/v2/posts/3"3686 "href": "http://example.org/index.php?rest_route=/wp/v2/posts/3" 3687 3687 } 3688 3688 ] … … 3750 3750 "self": [ 3751 3751 { 3752 "href": "http://example.org/ ?rest_route=/wp/v2/pages/5"3752 "href": "http://example.org/index.php?rest_route=/wp/v2/pages/5" 3753 3753 } 3754 3754 ], … … 3766 3766 { 3767 3767 "embeddable": true, 3768 "href": "http://example.org/ ?rest_route=%2Fwp%2Fv2%2Fcomments&post=5"3768 "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5" 3769 3769 } 3770 3770 ], 3771 3771 "version-history": [ 3772 3772 { 3773 "href": "http://example.org/ ?rest_route=/wp/v2/pages/5/revisions"3773 "href": "http://example.org/index.php?rest_route=/wp/v2/pages/5/revisions" 3774 3774 } 3775 3775 ], 3776 3776 "wp:attachment": [ 3777 3777 { 3778 "href": "http://example.org/ ?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5"3778 "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5" 3779 3779 } 3780 3780 ], … … 3849 3849 "parent": [ 3850 3850 { 3851 "href": "http://example.org/ ?rest_route=/wp/v2/pages/5"3851 "href": "http://example.org/index.php?rest_route=/wp/v2/pages/5" 3852 3852 } 3853 3853 ] … … 3916 3916 "self": [ 3917 3917 { 3918 "href": "http://example.org/ ?rest_route=/wp/v2/media/7"3918 "href": "http://example.org/index.php?rest_route=/wp/v2/media/7" 3919 3919 } 3920 3920 ], … … 3932 3932 { 3933 3933 "embeddable": true, 3934 "href": "http://example.org/ ?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"3934 "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7" 3935 3935 } 3936 3936 ] … … 4301 4301 "self": [ 4302 4302 { 4303 "href": "http://example.org/ ?rest_route=/wp/v2/tags/2"4303 "href": "http://example.org/index.php?rest_route=/wp/v2/tags/2" 4304 4304 } 4305 4305 ], … … 4316 4316 "wp:post_type": [ 4317 4317 { 4318 "href": "http://example.org/ ?rest_route=%2Fwp%2Fv2%2Fposts&tags=2"4318 "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&tags=2" 4319 4319 } 4320 4320 ], … … 4384 4384 "self": [ 4385 4385 { 4386 "href": "http://example.org/ ?rest_route=/wp/v2/users/2"4386 "href": "http://example.org/index.php?rest_route=/wp/v2/users/2" 4387 4387 } 4388 4388 ], … … 4451 4451 "self": [ 4452 4452 { 4453 "href": "http://example.org/ ?rest_route=/wp/v2/comments/2"4453 "href": "http://example.org/index.php?rest_route=/wp/v2/comments/2" 4454 4454 } 4455 4455 ], … … 4463 4463 "embeddable": true, 4464 4464 "post_type": "post", 4465 "href": "http://example.org/ ?rest_route=/wp/v2/posts/3"4465 "href": "http://example.org/index.php?rest_route=/wp/v2/posts/3" 4466 4466 } 4467 4467 ]
Note: See TracChangeset
for help on using the changeset viewer.