Make WordPress Core

Ticket #41123: 41123.diff

File 41123.diff, 2.6 KB (added by jnylen0, 8 years ago)
  • tests/phpunit/tests/rest-api/rest-schema-setup.php

    diff --git a/tests/phpunit/tests/rest-api/rest-schema-setup.php b/tests/phpunit/tests/rest-api/rest-schema-setup.php
    index b1fd17c..1ba5c4a 100644
    a b class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase { 
    378378         * how they were generated, see #39264.
    379379         */
    380380        private static $fixture_replacements = array(
    381                 'oembeds.html' => '<blockquote class="wp-embedded-content">...</blockquote>',
     381                'Schema.name' => 'Test Blog',
     382                'oembeds.provider_name' => 'Test Blog',
     383                'oembeds.author_name' => 'Test Blog',
     384                'oembeds.html' => '<blockquote class="wp-embedded-content">...</blockquote>...',
    382385                'PostsCollection.0.id' => 3,
    383386                'PostsCollection.0.guid.rendered' => 'http://example.org/?p=3',
    384387                'PostsCollection.0.link' => 'http://example.org/?p=3',
    class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase { 
    435438                'TagsCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/tags/2',
    436439                'TagsCollection.0._links.wp:post_type.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&tags=2',
    437440                'TagModel.id' => 2,
     441                'UsersCollection.0.avatar_urls.24' => 'http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=24&d=mm&r=g',
     442                'UsersCollection.0.avatar_urls.48' => 'http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=48&d=mm&r=g',
     443                'UsersCollection.0.avatar_urls.96' => 'http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=96&d=mm&r=g',
    438444                'UsersCollection.1.id' => 2,
    439445                'UsersCollection.1.link' => 'http://example.org/?author=2',
    440446                'UsersCollection.1._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/users/2',
    class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase { 
    450456                'CommentModel.id' => 2,
    451457                'CommentModel.post' => 3,
    452458                'CommentModel.link' => 'http://example.org/?p=3#comment-2',
     459                'settings.title' => 'Test Blog',
     460                'settings.email' => 'admin@example.org',
    453461        );
    454462
    455463        private function normalize_fixture( $data, $path ) {
  • tests/qunit/fixtures/wp-api-generated.js

    diff --git a/tests/qunit/fixtures/wp-api-generated.js b/tests/qunit/fixtures/wp-api-generated.js
    index 69e2375..9c0de51 100644
    a b mockedApiResponse.oembeds = { 
    35103510    "type": "rich",
    35113511    "width": 600,
    35123512    "height": 338,
    3513     "html": "<blockquote class=\"wp-embedded-content\">...</blockquote>"
     3513    "html": "<blockquote class=\"wp-embedded-content\">...</blockquote>..."
    35143514};
    35153515
    35163516mockedApiResponse.oembedProxy = {