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
This commit is contained in:
SergeyBiryukov 2018-09-23 15:45:02 +00:00
parent 33074d8c67
commit fb2699f28d
1 changed files with 6 additions and 6 deletions

View File

@ -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 ),