Make WordPress Core

Changeset 50537


Ignore:
Timestamp:
03/16/2021 06:44:40 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Tests: Correct some newly introduced @covers tags.

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

Props jrf.
See #39265.

Location:
trunk/tests/phpunit/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/error-protection/recovery-mode-key-service.php

    r50289 r50537  
    99         * @ticket 46130
    1010         *
    11          * @covers WP_Recovery_Mode_Cookie_Service::generate_recovery_mode_token
    12          * @covers WP_Recovery_Mode_Cookie_Service::generate_and_store_recovery_mode_key
     11         * @covers WP_Recovery_Mode_Key_Service::generate_recovery_mode_token
     12         * @covers WP_Recovery_Mode_Key_Service::generate_and_store_recovery_mode_key
    1313         */
    1414        public function test_generate_and_store_recovery_mode_key_returns_recovery_key() {
     
    2323         * @ticket 46130
    2424         *
    25          * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
     25         * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
    2626         */
    2727        public function test_validate_recovery_mode_key_returns_wp_error_if_no_key_set() {
     
    3636         * @ticket 46130
    3737         *
    38          * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
     38         * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
    3939         */
    4040        public function test_validate_recovery_mode_key_returns_wp_error_if_data_missing() {
     
    5151         * @ticket 46130
    5252         *
    53          * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
     53         * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
    5454         */
    5555        public function test_validate_recovery_mode_key_returns_wp_error_if_bad() {
     
    6767         * @ticket 46130
    6868         *
    69          * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
     69         * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
    7070         */
    7171        public function test_validate_recovery_mode_key_returns_wp_error_if_stored_format_is_invalid() {
     
    8484         * @ticket 46130
    8585         *
    86          * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
     86         * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
    8787         */
    8888        public function test_validate_recovery_mode_key_returns_wp_error_if_empty_key() {
     
    9999         * @ticket 46130
    100100         *
    101          * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
     101         * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
    102102         */
    103103        public function test_validate_recovery_mode_key_returns_wp_error_if_hash_mismatch() {
     
    114114         * @ticket 46130
    115115         *
    116          * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
     116         * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
    117117         */
    118118        public function test_validate_recovery_mode_key_returns_wp_error_if_expired() {
     
    134134         * @ticket 46130
    135135         *
    136          * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
     136         * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
    137137         */
    138138        public function test_validate_recovery_mode_key_returns_true_for_valid_key() {
     
    146146         * @ticket 46595
    147147         *
    148          * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
     148         * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
    149149         */
    150150        public function test_validate_recovery_mode_key_returns_error_if_token_used_more_than_once() {
     
    165165         * @ticket 46595
    166166         *
    167          * @covers WP_Recovery_Mode_Cookie_Service::generate_recovery_mode_token
    168          * @covers WP_Recovery_Mode_Cookie_Service::generate_and_store_recovery_mode_key
    169          * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key
     167         * @covers WP_Recovery_Mode_Key_Service::generate_recovery_mode_token
     168         * @covers WP_Recovery_Mode_Key_Service::generate_and_store_recovery_mode_key
     169         * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key
    170170         */
    171171        public function test_validate_recovery_mode_key_returns_error_if_token_used_more_than_once_more_than_key_stored() {
     
    191191         * @ticket 46595
    192192         *
    193          * @covers WP_Recovery_Mode_Cookie_Service::clean_expired_keys
     193         * @covers WP_Recovery_Mode_Key_Service::clean_expired_keys
    194194         */
    195195        public function test_clean_expired_keys() {
  • trunk/tests/phpunit/tests/http/http.php

    r50344 r50537  
    1212         * @dataProvider make_absolute_url_testcases
    1313         *
    14          * @covers ::WP_Http::make_absolute_url
     14         * @covers WP_Http::make_absolute_url
    1515         */
    1616        function test_make_absolute_url( $relative_url, $absolute_url, $expected ) {
Note: See TracChangeset for help on using the changeset viewer.