From 08b94111cb4631d059c13d7fc1296ee76663e0ab Mon Sep 17 00:00:00 2001 From: Rachel Baker Date: Mon, 10 Oct 2016 21:48:02 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/rest-api.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/rest-api.php b/tests/phpunit/tests/rest-api.php index 6710a830ae..1fe1b49540 100644 --- a/tests/phpunit/tests/rest-api.php +++ b/tests/phpunit/tests/rest-api.php @@ -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' ) ); } /**