Changeset 50339 for trunk/tests/phpunit/tests/general/template.php
- Timestamp:
- 02/13/2021 01:47:12 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/general/template.php
r49992 r50339 3 3 * A set of unit tests for functions in wp-includes/general-template.php 4 4 * 5 * @group general 5 6 * @group template 6 7 * @group site_icon … … 34 35 /** 35 36 * @group site_icon 37 * @covers ::get_site_icon_url 36 38 */ 37 39 function test_get_site_icon_url() { … … 47 49 /** 48 50 * @group site_icon 51 * @covers ::site_icon_url 49 52 */ 50 53 function test_site_icon_url() { … … 59 62 /** 60 63 * @group site_icon 64 * @covers ::has_site_icon 61 65 */ 62 66 function test_has_site_icon() { … … 74 78 * @group multisite 75 79 * @group ms-required 80 * @covers ::has_site_icon 76 81 */ 77 82 function test_has_site_icon_returns_true_when_called_for_other_site_with_site_icon_set() { … … 88 93 * @group multisite 89 94 * @group ms-required 95 * @covers ::has_site_icon 90 96 */ 91 97 function test_has_site_icon_returns_false_when_called_for_other_site_without_site_icon_set() { … … 97 103 /** 98 104 * @group site_icon 105 * @covers ::wp_site_icon 99 106 */ 100 107 function test_wp_site_icon() { … … 118 125 /** 119 126 * @group site_icon 127 * @covers ::wp_site_icon 120 128 */ 121 129 function test_wp_site_icon_with_filter() { … … 141 149 142 150 /** 143 * @group site_icon144 151 * @ticket 38377 152 * @group site_icon 153 * @covers ::wp_site_icon 145 154 */ 146 155 function test_customize_preview_wp_site_icon_empty() { … … 158 167 159 168 /** 160 * @group site_icon161 169 * @ticket 38377 170 * @group site_icon 171 * @covers ::wp_site_icon 162 172 */ 163 173 function test_customize_preview_wp_site_icon_dirty() { … … 242 252 /** 243 253 * @group custom_logo 254 * @covers ::has_custom_logo 244 255 * 245 256 * @since 4.5.0 … … 259 270 * @group multisite 260 271 * @group ms-required 272 * @covers ::has_custom_logo 261 273 */ 262 274 function test_has_custom_logo_returns_true_when_called_for_other_site_with_custom_logo_set() { … … 273 285 * @group multisite 274 286 * @group ms-required 287 * @covers ::has_custom_logo 275 288 */ 276 289 function test_has_custom_logo_returns_false_when_called_for_other_site_without_custom_logo_set() { … … 282 295 /** 283 296 * @group custom_logo 297 * @covers ::get_custom_logo 284 298 * 285 299 * @since 4.5.0 … … 301 315 * @group multisite 302 316 * @group ms-required 317 * @covers ::get_custom_logo 303 318 */ 304 319 function test_get_custom_logo_returns_logo_when_called_for_other_site_with_custom_logo_set() { … … 329 344 /** 330 345 * @group custom_logo 346 * @covers ::the_custom_logo 331 347 * 332 348 * @since 4.5.0 … … 356 372 357 373 /** 374 * @ticket 38768 358 375 * @group custom_logo 359 * @ ticket 38768376 * @covers ::the_custom_logo 360 377 */ 361 378 function test_the_custom_logo_with_alt() { … … 421 438 * @ticket 38253 422 439 * @group ms-required 440 * @covers ::get_site_icon_url 423 441 */ 424 442 function test_get_site_icon_url_preserves_switched_state() { … … 440 458 * @ticket 38253 441 459 * @group ms-required 460 * @covers ::has_custom_logo 442 461 */ 443 462 function test_has_custom_logo_preserves_switched_state() { … … 459 478 * @ticket 38253 460 479 * @group ms-required 480 * @covers ::get_custom_logo 461 481 */ 462 482 function test_get_custom_logo_preserves_switched_state() { … … 477 497 /** 478 498 * @ticket 40969 499 * 500 * @covers ::get_header 479 501 */ 480 502 function test_get_header_returns_nothing_on_success() { … … 488 510 /** 489 511 * @ticket 40969 512 * 513 * @covers ::get_footer 490 514 */ 491 515 function test_get_footer_returns_nothing_on_success() { … … 499 523 /** 500 524 * @ticket 40969 525 * 526 * @covers ::get_sidebar 501 527 */ 502 528 function test_get_sidebar_returns_nothing_on_success() { … … 510 536 /** 511 537 * @ticket 40969 538 * 539 * @covers ::get_template_part 512 540 */ 513 541 function test_get_template_part_returns_nothing_on_success() { … … 521 549 /** 522 550 * @ticket 40969 551 * 552 * @covers ::get_template_part 523 553 */ 524 554 function test_get_template_part_returns_false_on_failure() { … … 528 558 /** 529 559 * @ticket 21676 560 * 561 * @covers ::get_template_part 530 562 */ 531 563 function test_get_template_part_passes_arguments_to_template() { … … 538 570 * @ticket 9862 539 571 * @dataProvider data_selected_and_checked_with_equal_values 572 * 573 * @covers ::selected 574 * @covers ::checked 540 575 */ 541 576 function test_selected_and_checked_with_equal_values( $selected, $current ) { … … 562 597 * @ticket 9862 563 598 * @dataProvider data_selected_and_checked_with_non_equal_values 599 * 600 * @covers ::selected 601 * @covers ::checked 564 602 */ 565 603 function test_selected_and_checked_with_non_equal_values( $selected, $current ) { … … 578 616 /** 579 617 * @ticket 44183 618 * 619 * @covers ::get_the_archive_title 580 620 */ 581 621 function test_get_the_archive_title_is_correct_for_author_queries() {
Note: See TracChangeset
for help on using the changeset viewer.