Make WordPress Core


Ignore:
Timestamp:
08/25/2020 12:57:17 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: Clean up some existing @covers tags.

The () at the end is unnecessary and disregarded by PHPUnit, so can be removed.

Props jrf.
See #39265.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/widgets.php

    r48121 r48858  
    741741     * Tests for when 'sidebars_widgets' theme mod is populated.
    742742     *
    743      * @covers ::retrieve_widgets()
     743     * @covers ::retrieve_widgets
    744744     */
    745745    function test_retrieve_widgets_with_theme_mod() {
     
    805805     * Tests for when sidebars widgets matches registered sidebars.
    806806     *
    807      * @covers ::retrieve_widgets()
     807     * @covers ::retrieve_widgets
    808808     */
    809809    function test_retrieve_widgets_with_sidebars_widgets_matching_registered_sidebars() {
     
    843843     * Tests for when sidebars widgets doesn't match registered sidebars.
    844844     *
    845      * @covers ::retrieve_widgets()
     845     * @covers ::retrieve_widgets
    846846     */
    847847    function test_retrieve_widgets_with_sidebars_widgets_not_matching_registered_sidebars() {
     
    937937     * Tests for Customizer mode.
    938938     *
    939      * @covers ::retrieve_widgets()
     939     * @covers ::retrieve_widgets
    940940     */
    941941    function test_retrieve_widgets_for_customizer() {
     
    10091009     * Tests for orphaned widgets being moved into inactive widgets.
    10101010     *
    1011      * @covers ::retrieve_widgets()
     1011     * @covers ::retrieve_widgets
    10121012     */
    10131013    function test_retrieve_widgets_move_orphaned_widgets_to_inactive() {
     
    10441044     * Test _wp_remove_unregistered_widgets.
    10451045     *
    1046      * @covers ::_wp_remove_unregistered_widgets()
     1046     * @covers ::_wp_remove_unregistered_widgets
    10471047     */
    10481048    public function test__wp_remove_unregistered_widgets() {
     
    10741074     * Two themes with one sidebar each should just map, switching to a theme not previously-active.
    10751075     *
    1076      * @covers ::wp_map_sidebars_widgets()
     1076     * @covers ::wp_map_sidebars_widgets
    10771077     */
    10781078    public function test_one_sidebar_each() {
     
    10941094     * Sidebars with the same name should map, switching to a theme not previously-active.
    10951095     *
    1096      * @covers ::wp_map_sidebars_widgets()
     1096     * @covers ::wp_map_sidebars_widgets
    10971097     */
    10981098    public function test_sidebars_with_same_slug() {
     
    11121112     * Make educated guesses on theme sidebars.
    11131113     *
    1114      * @covers ::wp_map_sidebars_widgets()
     1114     * @covers ::wp_map_sidebars_widgets
    11151115     */
    11161116    public function test_sidebar_guessing() {
     
    11351135     * Make sure two sidebars that fall in the same group don't get the same menu assigned.
    11361136     *
    1137      * @covers ::wp_map_sidebars_widgets()
     1137     * @covers ::wp_map_sidebars_widgets
    11381138     */
    11391139    public function test_sidebar_guessing_one_menu_per_group() {
     
    11561156     * Make sure two sidebars that fall in the same group get menus assigned from the same group.
    11571157     *
    1158      * @covers ::wp_map_sidebars_widgets()
     1158     * @covers ::wp_map_sidebars_widgets
    11591159     */
    11601160    public function test_sidebar_guessing_one_menu_per_sidebar() {
Note: See TracChangeset for help on using the changeset viewer.