Ticket #39265: e_folders.patch
File e_folders.patch, 7.8 KB (added by , 4 years ago) |
---|
-
editor/wpEditors.php
21 21 ) 22 22 ); 23 23 } 24 24 25 /* 26 * @covers _WP_Editors::wp_link_query 27 */ 25 28 public function test_wp_link_query_returns_false_when_nothing_found() { 26 29 $actual = _WP_Editors::wp_link_query( array( 's' => 'foobarbaz' ) ); 27 30 28 31 $this->assertFalse( $actual ); 29 32 } 30 33 34 /* 35 * @covers _WP_Editors::wp_link_query 36 */ 31 37 public function test_wp_link_query_returns_search_results() { 32 38 $post = self::factory()->post->create_and_get( array( 'post_status' => 'publish' ) ); 33 39 $actual = _WP_Editors::wp_link_query( array( 's' => $post->post_title ) ); … … 47 53 48 54 /** 49 55 * @ticket 41825 56 * 57 * @covers _WP_Editors::wp_link_query 50 58 */ 51 59 public function test_wp_link_query_returns_filtered_result_when_nothing_found() { 52 60 add_filter( 'wp_link_query', array( $this, 'wp_link_query_callback' ) ); … … 65 73 $actual 66 74 ); 67 75 } 68 76 77 /* 78 * 79 * @covers _WP_Editors::wp_link_query 80 */ 69 81 public function test_wp_link_query_returns_filtered_search_results() { 70 82 $post = self::factory()->post->create_and_get( array( 'post_status' => 'publish' ) ); 71 83 -
error-protection/recovery-mode-cookie-service.php
7 7 8 8 /** 9 9 * @ticket 46130 10 * 11 * @covers WP_Recovery_Mode_Cookie_Service::validate_cookie 12 * @covers WP_Recovery_Mode_Cookie_Service::get_error_code 10 13 */ 11 14 public function test_validate_cookie_returns_wp_error_if_invalid_format() { 12 15 … … 27 30 28 31 /** 29 32 * @ticket 46130 33 * 34 * @covers WP_Recovery_Mode_Cookie_Service::validate_cookie 35 * @covers WP_Recovery_Mode_Cookie_Service::get_error_code 30 36 */ 31 37 public function test_validate_cookie_returns_wp_error_if_expired() { 32 38 $service = new WP_Recovery_Mode_Cookie_Service(); … … 44 50 45 51 /** 46 52 * @ticket 46130 53 * 54 * @covers WP_Recovery_Mode_Cookie_Service::validate_cookie 55 * @covers WP_Recovery_Mode_Cookie_Service::get_error_code 47 56 */ 48 57 public function test_validate_cookie_returns_wp_error_if_signature_mismatch() { 49 58 $service = new WP_Recovery_Mode_Cookie_Service(); … … 60 69 61 70 /** 62 71 * @ticket 46130 72 * 73 * @covers WP_Recovery_Mode_Cookie_Service::validate_cookie 74 * @covers WP_Recovery_Mode_Cookie_Service::get_error_code 63 75 */ 64 76 public function test_validate_cookie_returns_wp_error_if_created_at_is_invalid_format() { 65 77 $service = new WP_Recovery_Mode_Cookie_Service(); … … 77 89 78 90 /** 79 91 * @ticket 46130 92 * 93 * @covers WP_Recovery_Mode_Cookie_Service::validate_cookie 94 * @covers ReflectionMethod::invoke 80 95 */ 81 96 public function test_validate_cookie_returns_true_for_valid_cookie() { 82 97 -
error-protection/recovery-mode-key-service.php
7 7 8 8 /** 9 9 * @ticket 46130 10 * 11 * @covers WP_Recovery_Mode_Key_Service::generate_recovery_mode_token 12 * @covers WP_Recovery_Mode_Key_Service::generate_and_store_recovery_mode_key 10 13 */ 11 14 public function test_generate_and_store_recovery_mode_key_returns_recovery_key() { 12 15 $service = new WP_Recovery_Mode_Key_Service(); … … 18 21 19 22 /** 20 23 * @ticket 46130 24 * 25 * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key 26 * @covers WP_Recovery_Mode_Key_Service::get_error_code 21 27 */ 22 28 public function test_validate_recovery_mode_key_returns_wp_error_if_no_key_set() { 23 29 $service = new WP_Recovery_Mode_Key_Service(); … … 29 35 30 36 /** 31 37 * @ticket 46130 38 * 39 * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key 40 * @covers WP_Recovery_Mode_Key_Service::get_error_code 32 41 */ 33 42 public function test_validate_recovery_mode_key_returns_wp_error_if_data_missing() { 34 43 update_option( 'recovery_keys', 'gibberish' ); … … 42 51 43 52 /** 44 53 * @ticket 46130 54 * 55 * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key 56 * @covers WP_Recovery_Mode_Key_Service::get_error_code 45 57 */ 46 58 public function test_validate_recovery_mode_key_returns_wp_error_if_bad() { 47 59 update_option( 'recovery_keys', array( 'token' => 'gibberish' ) ); … … 56 68 57 69 /** 58 70 * @ticket 46130 71 * 72 * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key 73 * @covers WP_Recovery_Mode_Key_Service::get_error_code 59 74 */ 60 75 public function test_validate_recovery_mode_key_returns_wp_error_if_stored_format_is_invalid() { 61 76 … … 71 86 72 87 /** 73 88 * @ticket 46130 89 * 90 * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key 91 * @covers WP_Recovery_Mode_Key_Service::get_error_code 74 92 */ 75 93 public function test_validate_recovery_mode_key_returns_wp_error_if_empty_key() { 76 94 $service = new WP_Recovery_Mode_Key_Service(); … … 84 102 85 103 /** 86 104 * @ticket 46130 105 * 106 * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key 107 * @covers WP_Recovery_Mode_Key_Service::get_error_code 87 108 */ 88 109 public function test_validate_recovery_mode_key_returns_wp_error_if_hash_mismatch() { 89 110 $service = new WP_Recovery_Mode_Key_Service(); … … 97 118 98 119 /** 99 120 * @ticket 46130 121 * 122 * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key 123 * @covers WP_Recovery_Mode_Key_Service::get_error_code 100 124 */ 101 125 public function test_validate_recovery_mode_key_returns_wp_error_if_expired() { 102 126 $service = new WP_Recovery_Mode_Key_Service(); … … 115 139 116 140 /** 117 141 * @ticket 46130 142 * 143 * @covers WP_Recovery_Mode_Key_Service::generate_recovery_mode_token 144 * @covers WP_Recovery_Mode_Key_Service::generate_and_store_recovery_mode_key 145 * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key 118 146 */ 119 147 public function test_validate_recovery_mode_key_returns_true_for_valid_key() { 120 148 $service = new WP_Recovery_Mode_Key_Service(); … … 125 153 126 154 /** 127 155 * @ticket 46595 156 * 157 * @covers WP_Recovery_Mode_Key_Service::generate_recovery_mode_token 158 * @covers WP_Recovery_Mode_Key_Service::generate_and_store_recovery_mode_key 159 * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key 160 * @covers WP_Recovery_Mode_Key_Service::get_error_code 128 161 */ 129 162 public function test_validate_recovery_mode_key_returns_error_if_token_used_more_than_once() { 130 163 $service = new WP_Recovery_Mode_Key_Service(); … … 142 175 143 176 /** 144 177 * @ticket 46595 178 * 179 * @covers WP_Recovery_Mode_Key_Service::generate_recovery_mode_token 180 * @covers WP_Recovery_Mode_Key_Service::generate_and_store_recovery_mode_key 181 * @covers WP_Recovery_Mode_Key_Service::validate_recovery_mode_key 182 * @covers WP_Recovery_Mode_Key_Service::get_error_code 145 183 */ 146 184 public function test_validate_recovery_mode_key_returns_error_if_token_used_more_than_once_more_than_key_stored() { 147 185 $service = new WP_Recovery_Mode_Key_Service(); … … 164 202 165 203 /** 166 204 * @ticket 46595 205 * 206 * @covers WP_Recovery_Mode_Key_Service::clean_expired_keys 167 207 */ 168 208 public function test_clean_expired_keys() { 169 209 $service = new WP_Recovery_Mode_Key_Service(); -
external-http/basic.php
3 3 * @group external-http 4 4 */ 5 5 class Tests_External_HTTP_Basic extends WP_UnitTestCase { 6 6 7 8 /* 9 * @covers ::wp_remote_get 10 * @covers ::wp_remote_retrieve_response_code 11 * @covers ::wp_remote_retrieve_body 12 */ 7 13 function test_readme() { 8 14 // This test is designed to only run on trunk/master. 9 15 $this->skipOnAutomatedBranches();