- Timestamp:
- 12/16/2018 01:37:56 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43851
- Property svn:mergeinfo changed
-
trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php
r44150 r44217 477 477 'Schema.routes./wp/v2/pages._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/pages', 478 478 'Schema.routes./wp/v2/media._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/media', 479 'Schema.routes./wp/v2/blocks._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/blocks', 479 480 'Schema.routes./wp/v2/types._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/types', 480 481 'Schema.routes./wp/v2/statuses._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/statuses', … … 485 486 'Schema.routes./wp/v2/users/me._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/users/me', 486 487 'Schema.routes./wp/v2/comments._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/comments', 488 'Schema.routes./wp/v2/search._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/search', 487 489 'Schema.routes./wp/v2/settings._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/settings', 490 'Schema.routes./wp/v2/themes._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/themes', 488 491 'oembed.routes./oembed/1.0._links.self' => 'http://example.org/index.php?rest_route=/oembed/1.0', 489 492 'oembed.routes./oembed/1.0/embed._links.self' => 'http://example.org/index.php?rest_route=/oembed/1.0/embed', … … 502 505 'PostsCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4', 503 506 'PostsCollection.0._links.version-history.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4/revisions', 504 'PostsCollection.0._links.predecessor-version.0.id' => 5,505 'PostsCollection.0._links.predecessor-version.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4/revisions/ 5',507 'PostsCollection.0._links.predecessor-version.0.id' => 6, 508 'PostsCollection.0._links.predecessor-version.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4/revisions/6', 506 509 'PostsCollection.0._links.wp:attachment.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4', 507 510 'PostsCollection.0._links.wp:term.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4', … … 511 514 'PostModel.link' => 'http://example.org/?p=4', 512 515 'postRevisions.0.author' => 2, 513 'postRevisions.0.id' => 5,516 'postRevisions.0.id' => 6, 514 517 'postRevisions.0.parent' => 4, 515 'postRevisions.0.slug' => '4- revision-v1',516 'postRevisions.0.guid.rendered' => 'http://example.org/?p= 5',518 'postRevisions.0.slug' => '4-autosave-v1', 519 'postRevisions.0.guid.rendered' => 'http://example.org/?p=6', 517 520 'postRevisions.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4', 521 'postRevisions.1.author' => 2, 522 'postRevisions.1.id' => 5, 523 'postRevisions.1.parent' => 4, 524 'postRevisions.1.slug' => '4-revision-v1', 525 'postRevisions.1.guid.rendered' => 'http://example.org/?p=5', 526 'postRevisions.1._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4', 518 527 'revision.author' => 2, 519 528 'revision.id' => 5, … … 521 530 'revision.slug' => '4-revision-v1', 522 531 'revision.guid.rendered' => 'http://example.org/?p=5', 523 'PagesCollection.0.id' => 6, 524 'PagesCollection.0.guid.rendered' => 'http://example.org/?page_id=6', 525 'PagesCollection.0.link' => 'http://example.org/?page_id=6', 526 'PagesCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/6', 532 'postAutosaves.0.author' => 2, 533 'postAutosaves.0.id' => 6, 534 'postAutosaves.0.parent' => 4, 535 'postAutosaves.0.slug' => '4-autosave-v1', 536 'postAutosaves.0.guid.rendered' => 'http://example.org/?p=6', 537 'postAutosaves.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4', 538 'autosave.author' => 2, 539 'autosave.id' => 6, 540 'autosave.parent' => 4, 541 'autosave.slug' => '4-autosave-v1', 542 'autosave.guid.rendered' => 'http://example.org/?p=6', 543 'PagesCollection.0.id' => 7, 544 'PagesCollection.0.guid.rendered' => 'http://example.org/?page_id=7', 545 'PagesCollection.0.link' => 'http://example.org/?page_id=7', 546 'PagesCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7', 527 547 'PagesCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages', 528 548 'PagesCollection.0._links.about.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types/page', 529 'PagesCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post= 6',530 'PagesCollection.0._links.version-history.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/ 6/revisions',531 'PagesCollection.0._links.predecessor-version.0.id' => 7,532 'PagesCollection.0._links.predecessor-version.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/ 6/revisions/7',533 'PagesCollection.0._links.wp:attachment.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent= 6',534 'PageModel.id' => 6,535 'PageModel.guid.rendered' => 'http://example.org/?page_id= 6',536 'PageModel.link' => 'http://example.org/?page_id= 6',549 'PagesCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7', 550 'PagesCollection.0._links.version-history.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7/revisions', 551 'PagesCollection.0._links.predecessor-version.0.id' => 9, 552 'PagesCollection.0._links.predecessor-version.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7/revisions/9', 553 'PagesCollection.0._links.wp:attachment.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7', 554 'PageModel.id' => 7, 555 'PageModel.guid.rendered' => 'http://example.org/?page_id=7', 556 'PageModel.link' => 'http://example.org/?page_id=7', 537 557 'pageRevisions.0.author' => 2, 538 'pageRevisions.0.id' => 7, 539 'pageRevisions.0.parent' => 6, 540 'pageRevisions.0.slug' => '6-revision-v1', 541 'pageRevisions.0.guid.rendered' => 'http://example.org/?p=7', 542 'pageRevisions.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/6', 558 'pageRevisions.0.id' => 9, 559 'pageRevisions.0.parent' => 7, 560 'pageRevisions.0.slug' => '7-autosave-v1', 561 'pageRevisions.0.guid.rendered' => 'http://example.org/?p=9', 562 'pageRevisions.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7', 563 'pageRevisions.1.author' => 2, 564 'pageRevisions.1.id' => 8, 565 'pageRevisions.1.parent' => 7, 566 'pageRevisions.1.slug' => '7-revision-v1', 567 'pageRevisions.1.guid.rendered' => 'http://example.org/?p=8', 568 'pageRevisions.1._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7', 543 569 'pageRevision.author' => 2, 544 'pageRevision.id' => 7, 545 'pageRevision.parent' => 6, 546 'pageRevision.slug' => '6-revision-v1', 547 'pageRevision.guid.rendered' => 'http://example.org/?p=7', 548 'MediaCollection.0.id' => 8, 549 'MediaCollection.0.guid.rendered' => 'http://example.org/?attachment_id=8', 550 'MediaCollection.0.link' => 'http://example.org/?attachment_id=8', 570 'pageRevision.id' => 8, 571 'pageRevision.parent' => 7, 572 'pageRevision.slug' => '7-revision-v1', 573 'pageRevision.guid.rendered' => 'http://example.org/?p=8', 574 'pageAutosaves.0.author' => 2, 575 'pageAutosaves.0.id' => 9, 576 'pageAutosaves.0.parent' => 7, 577 'pageAutosaves.0.slug' => '7-autosave-v1', 578 'pageAutosaves.0.guid.rendered' => 'http://example.org/?p=9', 579 'pageAutosaves.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7', 580 'pageAutosave.author' => 2, 581 'pageAutosave.id' => 9, 582 'pageAutosave.parent' => 7, 583 'pageAutosave.slug' => '7-autosave-v1', 584 'pageAutosave.guid.rendered' => 'http://example.org/?p=9', 585 'MediaCollection.0.id' => 10, 586 'MediaCollection.0.guid.rendered' => 'http://example.org/?attachment_id=10', 587 'MediaCollection.0.link' => 'http://example.org/?attachment_id=10', 551 588 'MediaCollection.0.description.rendered' => '<p class="attachment"><!-- <a...><img.../></a> --></p>', 552 589 'MediaCollection.0.source_url' => 'http://example.org/wp-content/uploads//tmp/canola.jpg', 553 'MediaCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/media/ 8',590 'MediaCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/media/10', 554 591 'MediaCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/media', 555 592 'MediaCollection.0._links.about.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types/attachment', 556 'MediaCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post= 8',557 'MediaModel.id' => 8,558 'MediaModel.guid.rendered' => 'http://example.org/?attachment_id= 8',559 'MediaModel.link' => 'http://example.org/?attachment_id= 8',593 'MediaCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10', 594 'MediaModel.id' => 10, 595 'MediaModel.guid.rendered' => 'http://example.org/?attachment_id=10', 596 'MediaModel.link' => 'http://example.org/?attachment_id=10', 560 597 'MediaModel.description.rendered' => '<p class="attachment"><!-- <a...><img.../></a> --></p>', 561 598 'MediaModel.source_url' => 'http://example.org/wp-content/uploads//tmp/canola.jpg', … … 566 603 'TypesCollection.attachment._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types', 567 604 'TypesCollection.attachment._links.wp:items.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/media', 605 'TypesCollection.wp_block._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types', 606 'TypesCollection.wp_block._links.wp:items.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/blocks', 568 607 'StatusesCollection.publish._links.archives.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts', 569 608 'StatusesCollection.future._links.archives.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&status=future', … … 577 616 'TaxonomiesCollection.post_tag._links.wp:items.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/tags', 578 617 'CategoriesCollection.0.link' => 'http://example.org/?cat=1', 618 'CategoriesCollection.0.meta.test_single' => '', 619 'CategoriesCollection.0.meta.test_multi' => [], 620 'CategoriesCollection.0.meta.test_cat_single' => '', 621 'CategoriesCollection.0.meta.test_cat_multi' => [], 579 622 'CategoriesCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/categories/1', 580 623 'CategoriesCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/categories', … … 582 625 'CategoriesCollection.0._links.wp:post_type.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&categories=1', 583 626 'CategoryModel.link' => 'http://example.org/?cat=1', 627 'CategoryModel.meta.test_single' => '', 628 'CategoryModel.meta.test_multi' => [], 629 'CategoryModel.meta.test_cat_single' => '', 630 'CategoryModel.meta.test_cat_multi' => [], 584 631 'TagsCollection.0.id' => 2, 585 632 'TagsCollection.0.link' => 'http://example.org/?tag=restapi-client-fixture-tag', 633 'TagsCollection.0.meta.test_single' => '', 634 'TagsCollection.0.meta.test_multi' => [], 635 'TagsCollection.0.meta.test_tag_meta' => '', 586 636 'TagsCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/tags/2', 587 637 'TagsCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/tags', … … 590 640 'TagModel.id' => 2, 591 641 'TagModel.link' => 'http://example.org/?tag=restapi-client-fixture-tag', 642 'TagModel.meta.test_single' => '', 643 'TagModel.meta.test_multi' => [], 644 'TagModel.meta.test_tag_meta' => '', 592 645 'UsersCollection.0.link' => 'http://example.org/?author=1', 593 646 'UsersCollection.0.avatar_urls.24' => 'http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=24&d=mm&r=g',
Note: See TracChangeset
for help on using the changeset viewer.