- Timestamp:
- 10/31/2018 01:25:28 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/tests/phpunit/tests/rest-api/rest-schema-setup.php
r43805 r43851 460 460 'Schema.routes./wp/v2/pages._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/pages', 461 461 'Schema.routes./wp/v2/media._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/media', 462 'Schema.routes./wp/v2/blocks._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/blocks', 462 463 'Schema.routes./wp/v2/types._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/types', 463 464 'Schema.routes./wp/v2/statuses._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/statuses', … … 468 469 'Schema.routes./wp/v2/users/me._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/users/me', 469 470 'Schema.routes./wp/v2/comments._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/comments', 471 'Schema.routes./wp/v2/search._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/search', 470 472 'Schema.routes./wp/v2/settings._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/settings', 473 'Schema.routes./wp/v2/themes._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/themes', 471 474 'oembed.routes./oembed/1.0._links.self' => 'http://example.org/index.php?rest_route=/oembed/1.0', 472 475 'oembed.routes./oembed/1.0/embed._links.self' => 'http://example.org/index.php?rest_route=/oembed/1.0/embed', … … 485 488 'PostsCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4', 486 489 'PostsCollection.0._links.version-history.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4/revisions', 487 'PostsCollection.0._links.predecessor-version.0.id' => 5,488 'PostsCollection.0._links.predecessor-version.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4/revisions/ 5',490 'PostsCollection.0._links.predecessor-version.0.id' => 6, 491 'PostsCollection.0._links.predecessor-version.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4/revisions/6', 489 492 'PostsCollection.0._links.wp:attachment.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4', 490 493 'PostsCollection.0._links.wp:term.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4', … … 494 497 'PostModel.link' => 'http://example.org/?p=4', 495 498 'postRevisions.0.author' => 2, 496 'postRevisions.0.id' => 5,499 'postRevisions.0.id' => 6, 497 500 'postRevisions.0.parent' => 4, 498 'postRevisions.0.slug' => '4- revision-v1',499 'postRevisions.0.guid.rendered' => 'http://example.org/?p= 5',501 'postRevisions.0.slug' => '4-autosave-v1', 502 'postRevisions.0.guid.rendered' => 'http://example.org/?p=6', 500 503 'postRevisions.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4', 504 'postRevisions.1.author' => 2, 505 'postRevisions.1.id' => 5, 506 'postRevisions.1.parent' => 4, 507 'postRevisions.1.slug' => '4-revision-v1', 508 'postRevisions.1.guid.rendered' => 'http://example.org/?p=5', 509 'postRevisions.1._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4', 501 510 'revision.author' => 2, 502 511 'revision.id' => 5, … … 504 513 'revision.slug' => '4-revision-v1', 505 514 'revision.guid.rendered' => 'http://example.org/?p=5', 506 'PagesCollection.0.id' => 6, 507 'PagesCollection.0.guid.rendered' => 'http://example.org/?page_id=6', 508 'PagesCollection.0.link' => 'http://example.org/?page_id=6', 509 'PagesCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/6', 515 'postAutosaves.0.author' => 2, 516 'postAutosaves.0.id' => 6, 517 'postAutosaves.0.parent' => 4, 518 'postAutosaves.0.slug' => '4-autosave-v1', 519 'postAutosaves.0.guid.rendered' => 'http://example.org/?p=6', 520 'postAutosaves.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4', 521 'autosave.author' => 2, 522 'autosave.id' => 6, 523 'autosave.parent' => 4, 524 'autosave.slug' => '4-autosave-v1', 525 'autosave.guid.rendered' => 'http://example.org/?p=6', 526 'PagesCollection.0.id' => 7, 527 'PagesCollection.0.guid.rendered' => 'http://example.org/?page_id=7', 528 'PagesCollection.0.link' => 'http://example.org/?page_id=7', 529 'PagesCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7', 510 530 'PagesCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages', 511 531 'PagesCollection.0._links.about.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types/page', 512 'PagesCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post= 6',513 'PagesCollection.0._links.version-history.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/ 6/revisions',514 'PagesCollection.0._links.predecessor-version.0.id' => 7,515 'PagesCollection.0._links.predecessor-version.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/ 6/revisions/7',516 'PagesCollection.0._links.wp:attachment.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent= 6',517 'PageModel.id' => 6,518 'PageModel.guid.rendered' => 'http://example.org/?page_id= 6',519 'PageModel.link' => 'http://example.org/?page_id= 6',532 'PagesCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7', 533 'PagesCollection.0._links.version-history.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7/revisions', 534 'PagesCollection.0._links.predecessor-version.0.id' => 9, 535 'PagesCollection.0._links.predecessor-version.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7/revisions/9', 536 'PagesCollection.0._links.wp:attachment.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7', 537 'PageModel.id' => 7, 538 'PageModel.guid.rendered' => 'http://example.org/?page_id=7', 539 'PageModel.link' => 'http://example.org/?page_id=7', 520 540 'pageRevisions.0.author' => 2, 521 'pageRevisions.0.id' => 7, 522 'pageRevisions.0.parent' => 6, 523 'pageRevisions.0.slug' => '6-revision-v1', 524 'pageRevisions.0.guid.rendered' => 'http://example.org/?p=7', 525 'pageRevisions.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/6', 541 'pageRevisions.0.id' => 9, 542 'pageRevisions.0.parent' => 7, 543 'pageRevisions.0.slug' => '7-autosave-v1', 544 'pageRevisions.0.guid.rendered' => 'http://example.org/?p=9', 545 'pageRevisions.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7', 546 'pageRevisions.1.author' => 2, 547 'pageRevisions.1.id' => 8, 548 'pageRevisions.1.parent' => 7, 549 'pageRevisions.1.slug' => '7-revision-v1', 550 'pageRevisions.1.guid.rendered' => 'http://example.org/?p=8', 551 'pageRevisions.1._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7', 526 552 'pageRevision.author' => 2, 527 'pageRevision.id' => 7, 528 'pageRevision.parent' => 6, 529 'pageRevision.slug' => '6-revision-v1', 530 'pageRevision.guid.rendered' => 'http://example.org/?p=7', 531 'MediaCollection.0.id' => 8, 532 'MediaCollection.0.guid.rendered' => 'http://example.org/?attachment_id=8', 533 'MediaCollection.0.link' => 'http://example.org/?attachment_id=8', 553 'pageRevision.id' => 8, 554 'pageRevision.parent' => 7, 555 'pageRevision.slug' => '7-revision-v1', 556 'pageRevision.guid.rendered' => 'http://example.org/?p=8', 557 'pageAutosaves.0.author' => 2, 558 'pageAutosaves.0.id' => 9, 559 'pageAutosaves.0.parent' => 7, 560 'pageAutosaves.0.slug' => '7-autosave-v1', 561 'pageAutosaves.0.guid.rendered' => 'http://example.org/?p=9', 562 'pageAutosaves.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7', 563 'pageAutosave.author' => 2, 564 'pageAutosave.id' => 9, 565 'pageAutosave.parent' => 7, 566 'pageAutosave.slug' => '7-autosave-v1', 567 'pageAutosave.guid.rendered' => 'http://example.org/?p=9', 568 'MediaCollection.0.id' => 10, 569 'MediaCollection.0.guid.rendered' => 'http://example.org/?attachment_id=10', 570 'MediaCollection.0.link' => 'http://example.org/?attachment_id=10', 534 571 'MediaCollection.0.description.rendered' => '<p class="attachment"><!-- <a...><img.../></a> --></p>', 535 572 'MediaCollection.0.source_url' => 'http://example.org/wp-content/uploads//tmp/canola.jpg', 536 'MediaCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/media/ 8',573 'MediaCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/media/10', 537 574 'MediaCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/media', 538 575 'MediaCollection.0._links.about.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types/attachment', 539 'MediaCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post= 8',540 'MediaModel.id' => 8,541 'MediaModel.guid.rendered' => 'http://example.org/?attachment_id= 8',542 'MediaModel.link' => 'http://example.org/?attachment_id= 8',576 'MediaCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10', 577 'MediaModel.id' => 10, 578 'MediaModel.guid.rendered' => 'http://example.org/?attachment_id=10', 579 'MediaModel.link' => 'http://example.org/?attachment_id=10', 543 580 'MediaModel.description.rendered' => '<p class="attachment"><!-- <a...><img.../></a> --></p>', 544 581 'MediaModel.source_url' => 'http://example.org/wp-content/uploads//tmp/canola.jpg', … … 549 586 'TypesCollection.attachment._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types', 550 587 'TypesCollection.attachment._links.wp:items.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/media', 588 'TypesCollection.wp_block._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types', 589 'TypesCollection.wp_block._links.wp:items.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/blocks', 551 590 'StatusesCollection.publish._links.archives.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts', 552 591 'StatusesCollection.future._links.archives.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&status=future', … … 560 599 'TaxonomiesCollection.post_tag._links.wp:items.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/tags', 561 600 'CategoriesCollection.0.link' => 'http://example.org/?cat=1', 601 'CategoriesCollection.0.meta.test_single' => '', 602 'CategoriesCollection.0.meta.test_multi' => [], 603 'CategoriesCollection.0.meta.test_cat_single' => '', 604 'CategoriesCollection.0.meta.test_cat_multi' => [], 562 605 'CategoriesCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/categories/1', 563 606 'CategoriesCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/categories', … … 565 608 'CategoriesCollection.0._links.wp:post_type.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&categories=1', 566 609 'CategoryModel.link' => 'http://example.org/?cat=1', 610 'CategoryModel.meta.test_single' => '', 611 'CategoryModel.meta.test_multi' => [], 612 'CategoryModel.meta.test_cat_single' => '', 613 'CategoryModel.meta.test_cat_multi' => [], 567 614 'TagsCollection.0.id' => 2, 568 615 'TagsCollection.0.link' => 'http://example.org/?tag=restapi-client-fixture-tag', 616 'TagsCollection.0.meta.test_single' => '', 617 'TagsCollection.0.meta.test_multi' => [], 618 'TagsCollection.0.meta.test_tag_meta' => '', 569 619 'TagsCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/tags/2', 570 620 'TagsCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/tags', … … 573 623 'TagModel.id' => 2, 574 624 'TagModel.link' => 'http://example.org/?tag=restapi-client-fixture-tag', 625 'TagModel.meta.test_single' => '', 626 'TagModel.meta.test_multi' => [], 627 'TagModel.meta.test_tag_meta' => '', 575 628 'UsersCollection.0.link' => 'http://example.org/?author=1', 576 629 '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.