diff --git a/tests/phpunit/tests/rest-api/rest-server.php b/tests/phpunit/tests/rest-api/rest-server.php index 9b6f0f50a1..8c514e9e66 100644 --- a/tests/phpunit/tests/rest-api/rest-server.php +++ b/tests/phpunit/tests/rest-api/rest-server.php @@ -211,7 +211,7 @@ class Tests_REST_Server extends WP_Test_REST_TestCase { * Pass a capability which the user does not have, this should * result in a 403 error. */ - function test_rest_route_capability_authorization_fails() { + public function test_rest_route_capability_authorization_fails() { register_rest_route( 'test-ns', '/test', @@ -233,7 +233,7 @@ class Tests_REST_Server extends WP_Test_REST_TestCase { * An editor should be able to get access to an route with the * edit_posts capability. */ - function test_rest_route_capability_authorization() { + public function test_rest_route_capability_authorization() { register_rest_route( 'test-ns', '/test', @@ -260,7 +260,7 @@ class Tests_REST_Server extends WP_Test_REST_TestCase { * An "Allow" HTTP header should be sent with a request * for all available methods on that route. */ - function test_allow_header_sent() { + public function test_allow_header_sent() { register_rest_route( 'test-ns', @@ -287,7 +287,7 @@ class Tests_REST_Server extends WP_Test_REST_TestCase { * The "Allow" HTTP header should include all available * methods that can be sent to a route. */ - function test_allow_header_sent_with_multiple_methods() { + public function test_allow_header_sent_with_multiple_methods() { register_rest_route( 'test-ns', @@ -325,7 +325,7 @@ class Tests_REST_Server extends WP_Test_REST_TestCase { * The "Allow" HTTP header should NOT include other methods * which the user does not have access to. */ - function test_allow_header_send_only_permitted_methods() { + public function test_allow_header_send_only_permitted_methods() { register_rest_route( 'test-ns', @@ -1168,7 +1168,7 @@ class Tests_REST_Server extends WP_Test_REST_TestCase { * } * } */ - function data_rest_send_refreshed_nonce() { + public function data_rest_send_refreshed_nonce() { return array( array( true, true ), array( true, false ),