Make WordPress Core

Changeset 50287


Ignore:
Timestamp:
02/11/2021 03:15:37 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Tests: Add missing @covers tags for files in phpunit/tests/dependencies/.

Props patopaiar, jrf.
See #39265.

Location:
trunk/tests/phpunit/tests/dependencies
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/dependencies/jquery.php

    r49101 r50287  
    77class Tests_Dependencies_jQuery extends WP_UnitTestCase {
    88
     9        /**
     10         * @covers WP_Scripts::query
     11         */
    912        function test_location_of_jquery() {
    1013                $scripts = new WP_Scripts;
     
    4851         *
    4952         * @expectedIncorrectUsage wp_deregister_script
     53         *
     54         * @covers ::wp_script_is
    5055         */
    5156        function test_dont_allow_deregister_core_scripts_in_admin() {
     
    9196        /**
    9297         * @ticket 28404
     98         *
     99         * @covers ::wp_script_is
    93100         */
    94101        function test_wp_script_is_dep_enqueued() {
     
    105112         *
    106113         * @ticket 25247
     114         *
     115         * @covers WP_Scripts::do_items
    107116         */
    108117        function test_jquery_in_footer() {
  • trunk/tests/phpunit/tests/dependencies/scripts.php

    r50259 r50287  
    33 * @group dependencies
    44 * @group scripts
     5 * @covers ::wp_enqueue_script
     6 * @covers ::wp_register_script
     7 * @covers ::wp_print_scripts
     8 * @covers ::wp_script_add_data
     9 * @covers ::wp_add_inline_script
     10 * @covers ::wp_set_script_translations
    511 */
    612class Tests_Dependencies_Scripts extends WP_UnitTestCase {
     
    265271         *
    266272         * @ticket 35873
     273         *
     274         * @covers WP_Dependencies::add
     275         * @covers WP_Dependencies::enqueue
     276         * @covers WP_Dependencies::do_items
    267277         */
    268278        public function test_group_mismatch_in_deps() {
  • trunk/tests/phpunit/tests/dependencies/styles.php

    r48937 r50287  
    33 * @group dependencies
    44 * @group scripts
     5 * @covers ::wp_enqueue_style
     6 * @covers ::wp_register_style
     7 * @covers ::wp_print_styles
     8 * @covers ::wp_style_add_data
     9 * @covers ::wp_add_inline_style
    510 */
    611class Tests_Dependencies_Styles extends WP_UnitTestCase {
     
    350355         *
    351356         * Visual block styles should always be enqueued when editing to avoid the appearance of a broken editor.
     357         *
     358         * @covers ::wp_enqueue_style
    352359         */
    353360        function test_block_styles_for_editing_without_theme_support() {
     
    366373         *
    367374         * Visual block styles should always be enqueued when editing to avoid the appearance of a broken editor.
     375         *
     376         * @covers ::wp_common_block_scripts_and_styles
    368377         */
    369378        function test_block_styles_for_editing_with_theme_support() {
     
    382391         * Visual block styles should not be enqueued unless a theme opts in.
    383392         * This way we avoid style conflicts with existing themes.
     393         *
     394         * @covers ::wp_enqueue_style
    384395         */
    385396        function test_no_block_styles_for_viewing_without_theme_support() {
     
    398409         *
    399410         * Visual block styles should be enqueued when a theme opts in.
     411         *
     412         * @covers ::wp_common_block_scripts_and_styles
    400413         */
    401414        function test_block_styles_for_viewing_with_theme_support() {
Note: See TracChangeset for help on using the changeset viewer.