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.

git-svn-id: https://develop.svn.wordpress.org/trunk@38771 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Rachel Baker 2016-10-10 21:48:02 +00:00
parent 907d67572a
commit 08b94111cb
1 changed files with 4 additions and 2 deletions

View File

@ -20,10 +20,12 @@ class Tests_REST_API extends WP_UnitTestCase {
}
/**
* The plugin should be installed and activated.
* Checks that the main classes are loaded.
*/
function test_rest_api_activated() {
function test_rest_api_active() {
$this->assertTrue( class_exists( 'WP_REST_Server' ) );
$this->assertTrue( class_exists( 'WP_REST_Request' ) );
$this->assertTrue( class_exists( 'WP_REST_Response' ) );
}
/**