Make WordPress Core


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

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

Props patopaiar, jrf.
See #39265.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.