Changeset 50289
- Timestamp:
- 02/11/2021 08:53:19 PM (4 years ago)
- Location:
- trunk/tests/phpunit/tests/error-protection
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/error-protection/recovery-mode-cookie-service.php
r48937 r50289 8 8 /** 9 9 * @ticket 46130 10 * 11 * @covers WP_Recovery_Mode_Cookie_Service::validate_cookie 10 12 */ 11 13 public function test_validate_cookie_returns_wp_error_if_invalid_format() { … … 28 30 /** 29 31 * @ticket 46130 32 * 33 * @covers WP_Recovery_Mode_Cookie_Service::validate_cookie 30 34 */ 31 35 public function test_validate_cookie_returns_wp_error_if_expired() { … … 45 49 /** 46 50 * @ticket 46130 51 * 52 * @covers WP_Recovery_Mode_Cookie_Service::validate_cookie 47 53 */ 48 54 public function test_validate_cookie_returns_wp_error_if_signature_mismatch() { … … 61 67 /** 62 68 * @ticket 46130 69 * 70 * @covers WP_Recovery_Mode_Cookie_Service::validate_cookie 63 71 */ 64 72 public function test_validate_cookie_returns_wp_error_if_created_at_is_invalid_format() { … … 78 86 /** 79 87 * @ticket 46130 88 * 89 * @covers WP_Recovery_Mode_Cookie_Service::validate_cookie 80 90 */ 81 91 public function test_validate_cookie_returns_true_for_valid_cookie() { -
trunk/tests/phpunit/tests/error-protection/recovery-mode-key-service.php
r48937 r50289 8 8 /** 9 9 * @ticket 46130 10 * 11 * @covers WP_Recovery_Mode_Cookie_Service::generate_recovery_mode_token 12 * @covers WP_Recovery_Mode_Cookie_Service::generate_and_store_recovery_mode_key 10 13 */ 11 14 public function test_generate_and_store_recovery_mode_key_returns_recovery_key() { … … 19 22 /** 20 23 * @ticket 46130 24 * 25 * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key 21 26 */ 22 27 public function test_validate_recovery_mode_key_returns_wp_error_if_no_key_set() { … … 30 35 /** 31 36 * @ticket 46130 37 * 38 * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key 32 39 */ 33 40 public function test_validate_recovery_mode_key_returns_wp_error_if_data_missing() { … … 43 50 /** 44 51 * @ticket 46130 52 * 53 * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key 45 54 */ 46 55 public function test_validate_recovery_mode_key_returns_wp_error_if_bad() { … … 57 66 /** 58 67 * @ticket 46130 68 * 69 * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key 59 70 */ 60 71 public function test_validate_recovery_mode_key_returns_wp_error_if_stored_format_is_invalid() { … … 72 83 /** 73 84 * @ticket 46130 85 * 86 * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key 74 87 */ 75 88 public function test_validate_recovery_mode_key_returns_wp_error_if_empty_key() { … … 85 98 /** 86 99 * @ticket 46130 100 * 101 * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key 87 102 */ 88 103 public function test_validate_recovery_mode_key_returns_wp_error_if_hash_mismatch() { … … 98 113 /** 99 114 * @ticket 46130 115 * 116 * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key 100 117 */ 101 118 public function test_validate_recovery_mode_key_returns_wp_error_if_expired() { … … 116 133 /** 117 134 * @ticket 46130 135 * 136 * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key 118 137 */ 119 138 public function test_validate_recovery_mode_key_returns_true_for_valid_key() { … … 126 145 /** 127 146 * @ticket 46595 147 * 148 * @covers WP_Recovery_Mode_Cookie_Service::validate_recovery_mode_key 128 149 */ 129 150 public function test_validate_recovery_mode_key_returns_error_if_token_used_more_than_once() { … … 143 164 /** 144 165 * @ticket 46595 166 * 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 145 170 */ 146 171 public function test_validate_recovery_mode_key_returns_error_if_token_used_more_than_once_more_than_key_stored() { … … 165 190 /** 166 191 * @ticket 46595 192 * 193 * @covers WP_Recovery_Mode_Cookie_Service::clean_expired_keys 167 194 */ 168 195 public function test_clean_expired_keys() {
Note: See TracChangeset
for help on using the changeset viewer.