Tests: Correct some newly introduced @covers tags.

Follow-up to [50289], [50344].

Props jrf.
See .

git-svn-id: https://develop.svn.wordpress.org/trunk@50537 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2021-03-16 18:44:40 +00:00
parent 1479f1e543
commit d984b548c8
2 changed files with 16 additions and 16 deletions
tests/phpunit/tests

@ -8,8 +8,8 @@ class Tests_Recovery_Mode_Key_Service extends WP_UnitTestCase {
/**
* @ticket 46130
*
* @covers WP_Recovery_Mode_Cookie_Service::generate_recovery_mode_token
* @covers WP_Recovery_Mode_Cookie_Service::generate_and_store_recovery_mode_key
* @covers WP_Recovery_Mode_Key_Service::generate_recovery_mode_token
* @covers WP_Recovery_Mode_Key_Service::generate_and_store_recovery_mode_key
*/
public function test_generate_and_store_recovery_mode_key_returns_recovery_key() {
$service = new WP_Recovery_Mode_Key_Service();
@ -22,7 +22,7 @@ class Tests_Recovery_Mode_Key_Service extends WP_UnitTestCase {
/**
* @ticket 46130
*
* @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
* @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
*/
public function test_validate_recovery_mode_key_returns_wp_error_if_no_key_set() {
$service = new WP_Recovery_Mode_Key_Service();
@ -35,7 +35,7 @@ class Tests_Recovery_Mode_Key_Service extends WP_UnitTestCase {
/**
* @ticket 46130
*
* @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
* @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
*/
public function test_validate_recovery_mode_key_returns_wp_error_if_data_missing() {
update_option( 'recovery_keys', 'gibberish' );
@ -50,7 +50,7 @@ class Tests_Recovery_Mode_Key_Service extends WP_UnitTestCase {
/**
* @ticket 46130
*
* @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
* @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
*/
public function test_validate_recovery_mode_key_returns_wp_error_if_bad() {
update_option( 'recovery_keys', array( 'token' => 'gibberish' ) );
@ -66,7 +66,7 @@ class Tests_Recovery_Mode_Key_Service extends WP_UnitTestCase {
/**
* @ticket 46130
*
* @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
* @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
*/
public function test_validate_recovery_mode_key_returns_wp_error_if_stored_format_is_invalid() {
@ -83,7 +83,7 @@ class Tests_Recovery_Mode_Key_Service extends WP_UnitTestCase {
/**
* @ticket 46130
*
* @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
* @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
*/
public function test_validate_recovery_mode_key_returns_wp_error_if_empty_key() {
$service = new WP_Recovery_Mode_Key_Service();
@ -98,7 +98,7 @@ class Tests_Recovery_Mode_Key_Service extends WP_UnitTestCase {
/**
* @ticket 46130
*
* @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
* @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
*/
public function test_validate_recovery_mode_key_returns_wp_error_if_hash_mismatch() {
$service = new WP_Recovery_Mode_Key_Service();
@ -113,7 +113,7 @@ class Tests_Recovery_Mode_Key_Service extends WP_UnitTestCase {
/**
* @ticket 46130
*
* @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
* @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
*/
public function test_validate_recovery_mode_key_returns_wp_error_if_expired() {
$service = new WP_Recovery_Mode_Key_Service();
@ -133,7 +133,7 @@ class Tests_Recovery_Mode_Key_Service extends WP_UnitTestCase {
/**
* @ticket 46130
*
* @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
* @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
*/
public function test_validate_recovery_mode_key_returns_true_for_valid_key() {
$service = new WP_Recovery_Mode_Key_Service();
@ -145,7 +145,7 @@ class Tests_Recovery_Mode_Key_Service extends WP_UnitTestCase {
/**
* @ticket 46595
*
* @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
* @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
*/
public function test_validate_recovery_mode_key_returns_error_if_token_used_more_than_once() {
$service = new WP_Recovery_Mode_Key_Service();
@ -164,9 +164,9 @@ class Tests_Recovery_Mode_Key_Service extends WP_UnitTestCase {
/**
* @ticket 46595
*
* @covers WP_Recovery_Mode_Cookie_Service::generate_recovery_mode_token
* @covers WP_Recovery_Mode_Cookie_Service::generate_and_store_recovery_mode_key
* @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
* @covers WP_Recovery_Mode_Key_Service::generate_recovery_mode_token
* @covers WP_Recovery_Mode_Key_Service::generate_and_store_recovery_mode_key
* @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
*/
public function test_validate_recovery_mode_key_returns_error_if_token_used_more_than_once_more_than_key_stored() {
$service = new WP_Recovery_Mode_Key_Service();
@ -190,7 +190,7 @@ class Tests_Recovery_Mode_Key_Service extends WP_UnitTestCase {
/**
* @ticket 46595
*
* @covers WP_Recovery_Mode_Cookie_Service::clean_expired_keys
* @covers WP_Recovery_Mode_Key_Service::clean_expired_keys
*/
public function test_clean_expired_keys() {
$service = new WP_Recovery_Mode_Key_Service();

@ -11,7 +11,7 @@ class Tests_HTTP_HTTP extends WP_UnitTestCase {
/**
* @dataProvider make_absolute_url_testcases
*
* @covers ::WP_Http::make_absolute_url
* @covers WP_Http::make_absolute_url
*/
function test_make_absolute_url( $relative_url, $absolute_url, $expected ) {
$actual = WP_Http::make_absolute_url( $relative_url, $absolute_url );