From da92f2e8669cf3e18936d48d65532e35ebd8c488 Mon Sep 17 00:00:00 2001 From: Alex Lende Date: Wed, 31 Jan 2024 20:16:36 -0600 Subject: [PATCH] Fix class name in WP_REST_Global_Styles_Controller_Gutenberg_Test comments --- ...lobal-styles-controller-gutenberg-test.php | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/phpunit/class-wp-rest-global-styles-controller-gutenberg-test.php b/phpunit/class-wp-rest-global-styles-controller-gutenberg-test.php index a9e654699505a4..568dbc276dd594 100644 --- a/phpunit/class-wp-rest-global-styles-controller-gutenberg-test.php +++ b/phpunit/class-wp-rest-global-styles-controller-gutenberg-test.php @@ -1,10 +1,10 @@ get_routes(); @@ -163,7 +163,7 @@ public function test_get_items() { } /** - * @covers WP_REST_Global_Styles_Controller::get_theme_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::get_theme_item */ public function test_get_theme_item_no_user() { wp_set_current_user( 0 ); @@ -173,7 +173,7 @@ public function test_get_theme_item_no_user() { } /** - * @covers WP_REST_Global_Styles_Controller::get_theme_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::get_theme_item */ public function test_get_theme_item_permission_check() { wp_set_current_user( self::$subscriber_id ); @@ -183,7 +183,7 @@ public function test_get_theme_item_permission_check() { } /** - * @covers WP_REST_Global_Styles_Controller::get_theme_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::get_theme_item */ public function test_get_theme_item_invalid() { wp_set_current_user( self::$admin_id ); @@ -194,7 +194,7 @@ public function test_get_theme_item_invalid() { /** * @dataProvider data_get_theme_item_invalid_theme_dirname - * @covers WP_REST_Global_Styles_Controller::get_theme_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::get_theme_item * * @param string $theme_dirname Theme directory to test. * @param string $expected Expected error code. @@ -253,7 +253,7 @@ public function data_get_theme_item_invalid_theme_dirname() { /** * @dataProvider data_get_theme_item - * @covers WP_REST_Global_Styles_Controller::get_theme_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::get_theme_item * * @param string $theme Theme directory to test. */ @@ -310,7 +310,7 @@ public function data_get_theme_item() { } /** - * @covers WP_REST_Global_Styles_Controller::get_theme_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::get_theme_item */ public function test_get_theme_item_fields() { wp_set_current_user( self::$admin_id ); @@ -323,7 +323,7 @@ public function test_get_theme_item_fields() { } /** - * @covers WP_REST_Global_Styles_Controller::get_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::get_item */ public function test_get_item_no_user() { wp_set_current_user( 0 ); @@ -333,7 +333,7 @@ public function test_get_item_no_user() { } /** - * @covers WP_REST_Global_Styles_Controller::get_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::get_item */ public function test_get_item_invalid_post() { wp_set_current_user( self::$admin_id ); @@ -343,7 +343,7 @@ public function test_get_item_invalid_post() { } /** - * @covers WP_REST_Global_Styles_Controller::get_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::get_item */ public function test_get_item_permission_check() { wp_set_current_user( self::$subscriber_id ); @@ -353,7 +353,7 @@ public function test_get_item_permission_check() { } /** - * @covers WP_REST_Global_Styles_Controller::get_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::get_item */ public function test_get_item_no_user_edit() { wp_set_current_user( 0 ); @@ -364,7 +364,7 @@ public function test_get_item_no_user_edit() { } /** - * @covers WP_REST_Global_Styles_Controller::get_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::get_item */ public function test_get_item_permission_check_edit() { wp_set_current_user( self::$subscriber_id ); @@ -375,7 +375,7 @@ public function test_get_item_permission_check_edit() { } /** - * @covers WP_REST_Global_Styles_Controller::get_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::get_item */ public function test_get_item() { wp_set_current_user( self::$admin_id ); @@ -409,7 +409,7 @@ public function test_create_item() { } /** - * @covers WP_REST_Global_Styles_Controller::update_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::update_item */ public function test_update_item() { wp_set_current_user( self::$admin_id ); @@ -425,7 +425,7 @@ public function test_update_item() { } /** - * @covers WP_REST_Global_Styles_Controller::update_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::update_item */ public function test_update_item_no_user() { wp_set_current_user( 0 ); @@ -435,7 +435,7 @@ public function test_update_item_no_user() { } /** - * @covers WP_REST_Global_Styles_Controller::update_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::update_item */ public function test_update_item_invalid_post() { wp_set_current_user( self::$admin_id ); @@ -445,7 +445,7 @@ public function test_update_item_invalid_post() { } /** - * @covers WP_REST_Global_Styles_Controller::update_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::update_item */ public function test_update_item_permission_check() { wp_set_current_user( self::$subscriber_id ); @@ -455,7 +455,7 @@ public function test_update_item_permission_check() { } /** - * @covers WP_REST_Global_Styles_Controller::update_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::update_item */ public function test_update_item_valid_styles_css() { wp_set_current_user( self::$admin_id ); @@ -474,7 +474,7 @@ public function test_update_item_valid_styles_css() { } /** - * @covers WP_REST_Global_Styles_Controller::update_item + * @covers WP_REST_Global_Styles_Controller_Gutenberg::update_item */ public function test_update_item_invalid_styles_css() { wp_set_current_user( self::$admin_id ); @@ -506,7 +506,7 @@ public function test_prepare_item() { } /** - * @covers WP_REST_Global_Styles_Controller::get_item_schema + * @covers WP_REST_Global_Styles_Controller_Gutenberg::get_item_schema */ public function test_get_item_schema() { $request = new WP_REST_Request( 'OPTIONS', '/wp/v2/global-styles/' . self::$global_styles_id ); @@ -521,7 +521,7 @@ public function test_get_item_schema() { } /** - * @covers WP_REST_Global_Styles_Controller::get_available_actions + * @covers WP_REST_Global_Styles_Controller_Gutenberg::get_available_actions */ public function test_assign_edit_css_action_admin() { wp_set_current_user( self::$admin_id );