Make WordPress Core


Ignore:
Timestamp:
02/18/2017 07:29:24 PM (8 years ago)
Author:
jnylen0
Message:

REST API: Skip generating the client test fixtures in multisite mode.

There are a couple of changes to the generated API schemas between single-site and multisite mode - for example, the url and email settings are not present in the settings endpoint (see #39005).

To avoid unexpected changes to the wp-api-generated.js fixture file, skip generating the client test fixtures when running the test suite in multisite mode.

See #39264.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php

    r40066 r40077  
    284284        }
    285285
    286         if ( version_compare( PHP_VERSION, '5.4', '<' ) ) {
     286        if ( is_multisite() ) {
     287            echo "Skipping generation of API client fixtures in multisite mode.\n";
     288        } else if ( version_compare( PHP_VERSION, '5.4', '<' ) ) {
    287289            echo "Skipping generation of API client fixtures due to unsupported JSON_* constants.\n";
    288290        } else {
Note: See TracChangeset for help on using the changeset viewer.