Skip to content

Commit

Permalink
Replace "@Covers" with "Test class covering" (#6572)
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuLamiot authored Apr 23, 2024
1 parent 0cf2ccb commit 52bde30
Show file tree
Hide file tree
Showing 908 changed files with 915 additions and 915 deletions.
2 changes: 1 addition & 1 deletion tests/Integration/inc/API/bypass.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers ::rocket_bypass
* Test class covering ::rocket_bypass
* @group API
*/
class Bypass extends TestCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\API\Client::delete
* Test class covering WP_Rocket\Addon\Cloudflare\API\Client::delete
*
* @group Cloudflare
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/inc/Addon/Cloudflare/API/Client/get.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\API\Client::get
* Test class covering WP_Rocket\Addon\Cloudflare\API\Client::get
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\API\Client::patch
* Test class covering WP_Rocket\Addon\Cloudflare\API\Client::patch
*
* @group Cloudflare
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/inc/Addon/Cloudflare/API/Client/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\API\Client::post
* Test class covering WP_Rocket\Addon\Cloudflare\API\Client::post
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Admin\Subscriber::maybe_display_purge_notice
* Test class covering WP_Rocket\Addon\Cloudflare\Admin\Subscriber::maybe_display_purge_notice
*
* @group CloudflareAdmin
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Admin\Subscriber::maybe_display_update_settings_notice
* Test class covering WP_Rocket\Addon\Cloudflare\Admin\Subscriber::maybe_display_update_settings_notice
*
* @group CloudflareAdmin
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Cloudflare::get_cloudflare_ips
* Test class covering WP_Rocket\Addon\Cloudflare\Cloudflare::get_cloudflare_ips
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Cloudflare::get_settings
* Test class covering WP_Rocket\Addon\Cloudflare\Cloudflare::get_settings
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Cloudflare::has_page_rule
* Test class covering WP_Rocket\Addon\Cloudflare\Cloudflare::has_page_rule
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Cloudflare::is_auth_valid
* Test class covering WP_Rocket\Addon\Cloudflare\Cloudflare::is_auth_valid
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Cloudflare::purge_by_url
* Test class covering WP_Rocket\Addon\Cloudflare\Cloudflare::purge_by_url
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Cloudflare::purge_cloudflare
* Test class covering WP_Rocket\Addon\Cloudflare\Cloudflare::purge_cloudflare
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Cloudflare::set_browser_cache_ttl
* Test class covering WP_Rocket\Addon\Cloudflare\Cloudflare::set_browser_cache_ttl
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Cloudflare::set_cache_level
* Test class covering WP_Rocket\Addon\Cloudflare\Cloudflare::set_cache_level
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Cloudflare::set_dev_mode
* Test class covering WP_Rocket\Addon\Cloudflare\Cloudflare::set_dev_mode
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Cloudflare::set_minify
* Test class covering WP_Rocket\Addon\Cloudflare\Cloudflare::set_minify
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Cloudflare::set_rocket_loader
* Test class covering WP_Rocket\Addon\Cloudflare\Cloudflare::set_rocket_loader
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers \WP_Rocket\Addon\Cloudflare\Subscriber::add_cdn_helper_message
* Test class covering \WP_Rocket\Addon\Cloudflare\Subscriber::add_cdn_helper_message
* @group Cloudflare
*/
class Test_addCdnHelperMessage extends TestCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Subscriber::deactivate_devmode
* Test class covering WP_Rocket\Addon\Cloudflare\Subscriber::deactivate_devmode
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Subscriber::protocol_rewrite
* Test class covering WP_Rocket\Addon\Cloudflare\Subscriber::protocol_rewrite
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Subscriber::protocol_rewrite_srcset
* Test class covering WP_Rocket\Addon\Cloudflare\Subscriber::protocol_rewrite_srcset
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Subscriber::save_cloudflare_old_settings
* Test class covering WP_Rocket\Addon\Cloudflare\Subscriber::save_cloudflare_old_settings
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Subscriber::set_varnish_localhost
* Test class covering WP_Rocket\Addon\Cloudflare\Subscriber::set_varnish_localhost
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Cloudflare\Subscriber::set_varnish_purge_request_host
* Test class covering WP_Rocket\Addon\Cloudflare\Subscriber::set_varnish_purge_request_host
*
* @group Cloudflare
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers \WP_Rocket\Addon\Sucuri\Subscriber::add_cdn_helper_message
* Test class covering \WP_Rocket\Addon\Sucuri\Subscriber::add_cdn_helper_message
*/
class Test_addCdnHelperMessage extends TestCase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Varnish\Subscriber::clean_domain
* Test class covering WP_Rocket\Addon\Varnish\Subscriber::clean_domain
* @group Varnish
* @group Addon
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Varnish\Subscriber::clean_file
* Test class covering WP_Rocket\Addon\Varnish\Subscriber::clean_file
* @group Varnish
* @group Addon
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers WP_Rocket\Addon\Varnish\Subscriber::clean_home
* Test class covering WP_Rocket\Addon\Varnish\Subscriber::clean_home
* @group Varnish
* @group Addon
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use WP_Rocket\Tests\Integration\FilesystemTestCase;

/**
* @covers \WP_Rocket\Addon\WebP\Subscriber::convert_to_webp
* Test class covering \WP_Rocket\Addon\WebP\Subscriber::convert_to_webp
* @group WebP
*/
class Test_ConvertToWebp extends FilesystemTestCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers \WP_Rocket\Engine\Admin\Beacon\Beacon::insert_script
* Test class covering \WP_Rocket\Engine\Admin\Beacon\Beacon::insert_script
*
* @group Beacon
* @group AdminOnly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers \WP_Rocket\Engine\Admin\Deactivation\DeactivationIntent::activate_safe_mode
* Test class covering \WP_Rocket\Engine\Admin\Deactivation\DeactivationIntent::activate_safe_mode
*
* @group DeactivationIntent
* @group AdminOnly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers \WP_Rocket\Engine\Admin\Deactivation\DeactivationIntent::add_data_attribute
* Test class covering \WP_Rocket\Engine\Admin\Deactivation\DeactivationIntent::add_data_attribute
*
* @group AdminOnly
* @group DeactivationIntent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers \WP_Rocket\Engine\Admin\Deactivation\DeactivationIntent::add_modal_assets
* Test class covering \WP_Rocket\Engine\Admin\Deactivation\DeactivationIntent::add_modal_assets
*
* @group AdminOnly
* @group DeactivationIntent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\TestCase;

/**
* @covers \WP_Rocket\Engine\Admin\Deactivation\DeactivationIntent::insert_deactivation_intent_form
* Test class covering \WP_Rocket\Engine\Admin\Deactivation\DeactivationIntent::insert_deactivation_intent_form
*
* @group AdminOnly
* @group DeactivationIntent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\TestCase;
use Brain\Monkey\Functions;
/**
* @covers \WP_Rocket\Engine\Admin\DomainChange\Subscriber::add_regenerate_configuration_action
* Test class covering \WP_Rocket\Engine\Admin\DomainChange\Subscriber::add_regenerate_configuration_action
*/
class Test_addRegenerateConfigurationAction extends TestCase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
use WP_Rocket\Tests\Integration\DBTrait;

/**
* @covers \WP_Rocket\Engine\Admin\Settings\Settings::sanitize_callback
* @covers ::rocket_validate_css
* Test class covering \WP_Rocket\Engine\Admin\Settings\Settings::sanitize_callback
* Test class covering ::rocket_validate_css
*
* @group AdminOnly
* @group Settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\AdminTestCase;

/**
* @covers \WP_Rocket\Engine\Admin\Settings\Subscriber::async_wistia_script
* Test class covering \WP_Rocket\Engine\Admin\Settings\Subscriber::async_wistia_script
* @group AdminOnly
* @group SettingsPage
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\AdminTestCase;

/**
* @covers \WP_Rocket\Engine\Admin\Settings\Subscriber::enqueue_rocket_scripts
* Test class covering \WP_Rocket\Engine\Admin\Settings\Subscriber::enqueue_rocket_scripts
* @group AdminOnly
* @group SettingsPage
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\inc\Engine\CDN\RocketCDN\TestCase;

/**
* @covers \WP_Rocket\Engine\CDN\RocketCDN\AdminPageSubscriber::add_subscription_modal
* Test class covering \WP_Rocket\Engine\CDN\RocketCDN\AdminPageSubscriber::add_subscription_modal
* @uses ::rocket_is_live_site
* @uses ::rocket_get_constant
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\inc\Engine\CDN\RocketCDN\TestCase;

/**
* @covers \WP_Rocket\Engine\CDN\RocketCDN\AdminPageSubscriber::display_rocketcdn_status
* Test class covering \WP_Rocket\Engine\CDN\RocketCDN\AdminPageSubscriber::display_rocketcdn_status
* @uses \WP_Rocket\Engine\CDN\RocketCDN\APIClient::get_subscription_data
* @uses ::rocket_is_live_site
* @uses ::rocket_get_constant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use WP_Rocket\Tests\Integration\inc\Engine\CDN\RocketCDN\TestCase;

/**
* @covers \WP_Rocket\Engine\CDN\RocketCDN\AdminPageSubscriber::preserve_authorization_token
* Test class covering \WP_Rocket\Engine\CDN\RocketCDN\AdminPageSubscriber::preserve_authorization_token
* @uses \WP_Rocket\Engine\CDN\RocketCDN\APIClient::preserve_authorization_token
*
* @group AdminOnly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use WPDieException;

/**
* @covers \WP_Rocket\Engine\CDN\RocketCDN\AdminPageSubscriber::purge_cdn_cache
* Test class covering \WP_Rocket\Engine\CDN\RocketCDN\AdminPageSubscriber::purge_cdn_cache
* @uses ::rocket_get_constant
*
* @group AdminOnly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WP_Rocket\Tests\Integration\inc\Engine\CDN\RocketCDN\TestCase;

/**
* @covers \WP_Rocket\Engine\CDN\RocketCDN\AdminPageSubscriber::rocketcdn_field
* Test class covering \WP_Rocket\Engine\CDN\RocketCDN\AdminPageSubscriber::rocketcdn_field
*
* @uses \WP_Rocket\Engine\CDN\RocketCDN\APIClient::get_subscription_data
* @uses \WP_Rocket\Admin\Options_Data::get
Expand Down
Loading

0 comments on commit 52bde30

Please sign in to comment.