Make WordPress Core

Changeset 43652 for trunk


Ignore:
Timestamp:
09/23/2018 03:45:02 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Tests: Add missing public access modifier to Tests_REST_Server methods.

Props andizer.
Fixes #44939.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-server.php

    r43571 r43652  
    212212     * result in a 403 error.
    213213     */
    214     function test_rest_route_capability_authorization_fails() {
     214    public function test_rest_route_capability_authorization_fails() {
    215215        register_rest_route(
    216216            'test-ns',
     
    234234     * edit_posts capability.
    235235     */
    236     function test_rest_route_capability_authorization() {
     236    public function test_rest_route_capability_authorization() {
    237237        register_rest_route(
    238238            'test-ns',
     
    261261     * for all available methods on that route.
    262262     */
    263     function test_allow_header_sent() {
     263    public function test_allow_header_sent() {
    264264
    265265        register_rest_route(
     
    288288     * methods that can be sent to a route.
    289289     */
    290     function test_allow_header_sent_with_multiple_methods() {
     290    public function test_allow_header_sent_with_multiple_methods() {
    291291
    292292        register_rest_route(
     
    326326     * which the user does not have access to.
    327327     */
    328     function test_allow_header_send_only_permitted_methods() {
     328    public function test_allow_header_send_only_permitted_methods() {
    329329
    330330        register_rest_route(
     
    11691169     * }
    11701170     */
    1171     function data_rest_send_refreshed_nonce() {
     1171    public function data_rest_send_refreshed_nonce() {
    11721172        return array(
    11731173            array( true, true ),
Note: See TracChangeset for help on using the changeset viewer.