Skip to content

Commit

Permalink
Ticket no in tests
Browse files Browse the repository at this point in the history
Spacing between comments
  • Loading branch information
ramonjd committed Jun 22, 2023
1 parent 640f633 commit 4985364
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public function register_routes() {
* @since 6.3.0
*
* @param WP_REST_Request $request The request instance.
*
* @return WP_REST_Response|WP_Error
*/
public function get_items( $request ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ public static function wpTearDownAfterClass() {

/**
* @covers WP_REST_Global_Styles_Controller::register_routes
*
* @ticket 58524
*/
public function test_register_routes() {
$routes = rest_get_server()->get_routes();
Expand All @@ -95,6 +97,8 @@ public function test_register_routes() {

/**
* @covers WP_REST_Global_Styles_Controller::get_items
*
* @ticket 58524
*/
public function test_get_items() {
wp_set_current_user( self::$admin_id );
Expand Down Expand Up @@ -170,6 +174,8 @@ public function test_get_items() {

/**
* @covers WP_REST_Global_Styles_Controller::get_item_schema
*
* @ticket 58524
*/
public function test_get_item_schema() {
$request = new WP_REST_Request( 'OPTIONS', '/wp/v2/global-styles/' . self::$global_styles_id . '/revisions' );
Expand All @@ -191,6 +197,8 @@ public function test_get_item_schema() {

/**
* @covers WP_REST_Global_Styles_Controller::get_item_permissions_check
*
* @ticket 58524
*/
public function test_get_item_permissions_check() {
wp_set_current_user( self::$author_id );
Expand Down

0 comments on commit 4985364

Please sign in to comment.