From fb2699f28dcfa11e0be21ca2859ffd12164065b3 Mon Sep 17 00:00:00 2001 From: SergeyBiryukov Date: Sun, 23 Sep 2018 15:45:02 +0000 Subject: [PATCH] Tests: Add missing `public` access modifier to `Tests_REST_Server` methods. Props andizer. Fixes #44939. git-svn-id: https://develop.svn.wordpress.org/trunk@43652 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/rest-api/rest-server.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 ),