WordPress.org

Make WordPress Core

Changeset 38771


Ignore:
Timestamp:
10/10/2016 09:48:02 PM (20 months ago)
Author:
rachelbaker
Message:

REST API: Remove reference to the plugin in infrastructure activation test.

Also adds class exists checks for WP_REST_Request and WP_REST_Response.

Props kraftbj.
Fixes #38279.

File:
1 edited

Legend:

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

    r37646 r38771  
    2121
    2222    /**
    23      * The plugin should be installed and activated.
    24      */
    25     function test_rest_api_activated() {
     23     * Checks that the main classes are loaded.
     24     */
     25    function test_rest_api_active() {
    2626        $this->assertTrue( class_exists( 'WP_REST_Server' ) );
     27        $this->assertTrue( class_exists( 'WP_REST_Request' ) );
     28        $this->assertTrue( class_exists( 'WP_REST_Response' ) );
    2729    }
    2830
Note: See TracChangeset for help on using the changeset viewer.