Make WordPress Core


Ignore:
Timestamp:
02/01/2018 04:08:04 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Tests: Correct erroneous @covers and @use tags.

Props jipmoors.
Fixes #43203.

File:
1 edited

Legend:

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

    r42362 r42636  
    724724     * Tests for when 'sidebars_widgets' theme mod is populated.
    725725     *
    726      * @covers retrieve_widgets()
     726     * @covers ::retrieve_widgets()
    727727     */
    728728    function test_retrieve_widgets_with_theme_mod() {
     
    787787     * Tests for when sidebars widgets matches registered sidebars.
    788788     *
    789      * @covers retrieve_widgets()
     789     * @covers ::retrieve_widgets()
    790790     */
    791791    function test_retrieve_widgets_with_sidebars_widgets_matching_registered_sidebars() {
     
    825825     * Tests for when sidebars widgets doesn't match registered sidebars.
    826826     *
    827      * @covers retrieve_widgets()
     827     * @covers ::retrieve_widgets()
    828828     */
    829829    function test_retrieve_widgets_with_sidebars_widgets_not_matching_registered_sidebars() {
     
    919919     * Tests for Customizer mode.
    920920     *
    921      * @covers retrieve_widgets()
     921     * @covers ::retrieve_widgets()
    922922     */
    923923    function test_retrieve_widgets_for_customizer() {
     
    991991     * Tests for orphaned widgets being moved into inactive widgets.
    992992     *
    993      * @covers retrieve_widgets()
     993     * @covers ::retrieve_widgets()
    994994     */
    995995    function test_retrieve_widgets_move_orphaned_widgets_to_inactive() {
     
    10261026     * Test _wp_remove_unregistered_widgets.
    10271027     *
    1028      * @covers _wp_remove_unregistered_widgets()
     1028     * @covers ::_wp_remove_unregistered_widgets()
    10291029     */
    10301030    public function test__wp_remove_unregistered_widgets() {
     
    10561056     * Two themes with one sidebar each should just map, switching to a theme not previously-active.
    10571057     *
    1058      * @covers wp_map_sidebars_widgets()
     1058     * @covers ::wp_map_sidebars_widgets()
    10591059     */
    10601060    public function test_one_sidebar_each() {
     
    10761076     * Sidebars with the same name should map, switching to a theme not previously-active.
    10771077     *
    1078      * @covers wp_map_sidebars_widgets()
     1078     * @covers ::wp_map_sidebars_widgets()
    10791079     */
    10801080    public function test_sidebars_with_same_slug() {
     
    10941094     * Make educated guesses on theme sidebars.
    10951095     *
    1096      * @covers wp_map_sidebars_widgets()
     1096     * @covers ::wp_map_sidebars_widgets()
    10971097     */
    10981098    public function test_sidebar_guessing() {
     
    11171117     * Make sure two sidebars that fall in the same group don't get the same menu assigned.
    11181118     *
    1119      * @covers wp_map_sidebars_widgets()
     1119     * @covers ::wp_map_sidebars_widgets()
    11201120     */
    11211121    public function test_sidebar_guessing_one_menu_per_group() {
     
    11381138     * Make sure two sidebars that fall in the same group get menus assigned from the same group.
    11391139     *
    1140      * @covers wp_map_sidebars_widgets()
     1140     * @covers ::wp_map_sidebars_widgets()
    11411141     */
    11421142    public function test_sidebar_guessing_one_menu_per_sidebar() {
Note: See TracChangeset for help on using the changeset viewer.