Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/28/2019 07:49:19 PM (7 years ago)
Author:
imath
Message:

Revert [12483]

For further details see this discussion on slack

Props espellcaste, johnjamesjacoby

See #8151 (Branch 5.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/tests/phpunit/assets/bp-rest-api-controllers.php

    r12483 r12484  
    1818        public function __construct() {
    1919                $this->namespace = bp_rest_namespace() . '/' . bp_rest_version();
    20                 $this->rest_base = 'xprofile';
     20                $this->rest_base = 'members';
    2121        }
    2222
     
    5353        }
    5454}
    55 
    56 /**
    57  * BP xProfiles Data REST Controller's mock.
    58  */
    59 class BP_REST_XProfile_Data_Endpoint extends BP_REST_Mock_Class {
    60         public function __construct() {
    61                 $this->namespace = bp_rest_namespace() . '/' . bp_rest_version();
    62                 $this->rest_base = 'xprofile';
    63         }
    64 
    65         public function register_routes( $controller = '' ) {
    66                 parent::register_routes( 'BP_REST_XProfile_Data_Endpoint' );
    67         }
    68 }
    69 
    70 /**
    71  * BP xProfiles Field Groups REST Controller's mock.
    72  */
    73 class BP_REST_XProfile_Field_Groups_Endpoint extends BP_REST_Mock_Class {
    74         public function __construct() {
    75                 $this->namespace = bp_rest_namespace() . '/' . bp_rest_version();
    76                 $this->rest_base = 'xprofile/groups';
    77         }
    78 
    79         public function register_routes( $controller = '' ) {
    80                 parent::register_routes( 'BP_REST_XProfile_Field_Groups_Endpoint' );
    81         }
    82 }
    83 
    84 /**
    85  * BP xProfiles Fields REST Controller's mock.
    86  */
    87 class BP_REST_XProfile_Fields_Endpoint extends BP_REST_Mock_Class {
    88         public function __construct() {
    89                 $this->namespace = bp_rest_namespace() . '/' . bp_rest_version();
    90                 $this->rest_base = 'xprofile/fields';
    91         }
    92 
    93         public function register_routes( $controller = '' ) {
    94                 parent::register_routes( 'BP_REST_XProfile_Fields_Endpoint' );
    95         }
    96 }
Note: See TracChangeset for help on using the changeset viewer.