- Timestamp:
- 11/29/2022 03:49:49 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php
r54527 r54891 153 153 public function set_up() { 154 154 parent::set_up(); 155 $this->endpoint = new WP_REST_Comments_Controller ;155 $this->endpoint = new WP_REST_Comments_Controller(); 156 156 if ( is_multisite() ) { 157 157 update_site_option( 'site_admins', array( 'superadmin' ) ); … … 954 954 wp_set_current_user( self::$admin_id ); 955 955 956 $endpoint = new WP_REST_Comments_Controller ;956 $endpoint = new WP_REST_Comments_Controller(); 957 957 $request = new WP_REST_Request( 'GET', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 958 958 $request->set_param( 'context', 'edit' );
Note: See TracChangeset
for help on using the changeset viewer.