Changeset 12607 for trunk/tests/phpunit/assets/bp-rest-api-controllers.php
- Timestamp:
- 03/31/2020 11:33:35 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/assets/bp-rest-api-controllers.php
r12485 r12607 9 9 public function register_routes( $controller = '' ) { 10 10 array_push( buddypress()->unit_test_rest->controllers, $controller ); 11 } 12 } 13 14 /** 15 * BP Member Cover Image REST Controller's mock. 16 */ 17 class BP_REST_Attachments_Member_Cover_Endpoint extends BP_REST_Mock_Class { 18 public function __construct() { 19 $this->namespace = bp_rest_namespace() . '/' . bp_rest_version(); 20 $this->rest_base = 'members'; 21 } 22 23 public function register_routes( $controller = '' ) { 24 parent::register_routes( 'BP_REST_Attachments_Member_Cover_Endpoint' ); 11 25 } 12 26 }
Note: See TracChangeset
for help on using the changeset viewer.