Changeset 53682
- Timestamp:
- 07/07/2022 10:43:37 PM (2 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/url.php
r52010 r53682 15 15 /** 16 16 * @dataProvider data_is_ssl 17 * 18 * @covers ::is_ssl 17 19 */ 18 20 public function test_is_ssl( $value, $expected ) { … … 48 50 } 49 51 52 /** 53 * @covers ::is_ssl 54 */ 50 55 public function test_is_ssl_by_port() { 51 56 unset( $_SERVER['HTTPS'] ); … … 56 61 } 57 62 63 /** 64 * @covers ::is_ssl 65 */ 58 66 public function test_is_ssl_with_no_value() { 59 67 unset( $_SERVER['HTTPS'] ); … … 68 76 * @param string $url Test URL. 69 77 * @param string $expected Expected result. 78 * 79 * @covers ::admin_url 70 80 */ 71 81 public function test_admin_url( $url, $expected ) { … … 136 146 * @param string $url Test URL. 137 147 * @param string $expected Expected result. 148 * 149 * @covers ::home_url 138 150 */ 139 151 public function test_home_url( $url, $expected ) { … … 199 211 } 200 212 213 /** 214 * @covers ::home_url 215 * 216 * @uses ::get_option 217 */ 201 218 public function test_home_url_from_admin() { 202 219 // Pretend to be in the site admin. … … 244 261 } 245 262 263 /** 264 * @covers ::network_home_url 265 */ 246 266 public function test_network_home_url_from_admin() { 247 267 // Pretend to be in the site admin. … … 265 285 } 266 286 287 /** 288 * @covers ::set_url_scheme 289 */ 267 290 public function test_set_url_scheme() { 268 291 $links = array( … … 325 348 } 326 349 350 /** 351 * @covers ::get_adjacent_post 352 */ 327 353 public function test_get_adjacent_post() { 328 354 $now = time(); … … 359 385 * 360 386 * @ticket 30287 387 * 388 * @covers ::get_adjacent_post 361 389 */ 362 390 public function test_get_adjacent_post_should_return_private_posts_belonging_to_the_current_user() { … … 396 424 /** 397 425 * @ticket 30287 426 * 427 * @covers ::get_adjacent_post 398 428 */ 399 429 public function test_get_adjacent_post_should_return_private_posts_belonging_to_other_users_if_the_current_user_can_read_private_posts() { … … 434 464 /** 435 465 * @ticket 30287 466 * 467 * @covers ::get_adjacent_post 436 468 */ 437 469 public function test_get_adjacent_post_should_not_return_private_posts_belonging_to_other_users_if_the_current_user_cannot_read_private_posts() { … … 480 512 * 481 513 * @ticket 19032 514 * 515 * @covers ::site_url 516 * @covers ::home_url 517 * @covers ::admin_url 518 * @covers ::network_admin_url 519 * @covers ::user_admin_url 520 * @covers ::includes_url 521 * @covers ::network_site_url 522 * @covers ::network_home_url 523 * @covers ::content_url 524 * @covers ::plugins_url 482 525 */ 483 526 public function test_url_functions_for_dots_in_paths() { -
trunk/tests/phpunit/tests/url/getPrivacyPolicyUrl.php
r53681 r53682 13 13 * @group url 14 14 * @group privacy 15 * @covers ::get_privacy_policy_url16 15 * 17 16 * @since 4.9.6 17 * 18 * @covers ::get_privacy_policy_url 18 19 */ 19 20 class Tests_Url_GetPrivacyPolicyUrl extends WP_UnitTestCase { … … 57 58 /** 58 59 * The function should return the privacy policy URL when `wp_page_for_privacy_policy` is set. 60 * 61 * @uses ::get_permalink 59 62 */ 60 63 public function test_get_privacy_policy_url_should_return_valid_url_when_policy_page_set() {
Note: See TracChangeset
for help on using the changeset viewer.