Make WordPress Core

Changeset 55337


Ignore:
Timestamp:
02/14/2023 04:10:13 PM (20 months ago)
Author:
SergeyBiryukov
Message:

Tests: Merge file-level and class-level DocBlocks in various unit test files.

Per the documentation standards, whenever possible, all WordPress files should contain a header DocBlock, regardless of the file’s contents – this includes files containing classes.

However, this recommendation makes less sense for unit test classes if not applied consistently, and the duplicate tags cause some confusion.

This commit aims to reduce confusion and avoid repeating information by combining the DocBlocks.

Follow-up to [40607], [43183], [43291], [43292], [43499], [43568], [44502], [44535], [44628], [44786], [44824], [44906], [44909], [46175].

Props wojtekn, antonvlasenko, arafatjamil01, hztyfoon, mukesh27, costdev, jamilbd07, robinwpdeveloper, SergeyBiryukov.
Fixes #57099.

Location:
trunk/tests/phpunit/tests
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/admin/wpCommunityEvents.php

    r54075 r55337  
    66 * @subpackage UnitTests
    77 * @since 4.8.0
    8  */
    9 
    10 /**
    11  * Class Tests_Admin_wpCommunityEvents.
    128 *
    139 * @group admin
    1410 * @group community-events
    15  *
    16  * @since 4.8.0
    1711 */
    1812class Tests_Admin_wpCommunityEvents extends WP_UnitTestCase {
  • trunk/tests/phpunit/tests/admin/wpPrivacyRequestsTable.php

    r54215 r55337  
    66 *
    77 * @since 5.1.0
    8  */
    9 
    10 /**
    11  * Tests_Admin_wpPrivacyRequestsTable class.
    128 *
    139 * @group admin
    1410 * @group privacy
    15  *
    16  * @since 5.1.0
    1711 */
    1812class Tests_Admin_wpPrivacyRequestsTable extends WP_UnitTestCase {
  • trunk/tests/phpunit/tests/ajax/wpAjaxWpPrivacyErasePersonalData.php

    r54722 r55337  
    44 *
    55 * @package WordPress\UnitTests
    6  * @since 5.2.0
    7  */
    8 
    9 /**
    10  * Tests_Ajax_PrivacyExportPersonalData class.
    11  *
    126 * @since 5.2.0
    137 *
  • trunk/tests/phpunit/tests/ajax/wpAjaxWpPrivacyExportPersonalData.php

    r54722 r55337  
    44 *
    55 * @package WordPress\UnitTests
    6  * @since 5.2.0
    7  */
    8 
    9 /**
    10  * Tests_Ajax_PrivacyExportPersonalData class.
    11  *
    126 * @since 5.2.0
    137 *
  • trunk/tests/phpunit/tests/comment/isAvatarCommentType.php

    r53863 r55337  
    66 *
    77 * @since 5.1.0
    8  */
    9 
    10 /**
    11  * Tests_Comment_IsAvatarCommentType class.
    128 *
    139 * @group comment
    14  *
    15  * @since 5.1.0
    1610 *
    1711 * @covers ::is_avatar_comment_type
  • trunk/tests/phpunit/tests/functions/doEnclose.php

    r55211 r55337  
    11<?php
     2
    23/**
    34 * Test cases for the `do_enclose()` function.
    45 *
    56 * @package WordPress\UnitTests
    6  *
    7  * @since 5.3.0
    8  */
    9 
    10 /**
    11  * Tests_Functions_DoEnclose class.
    127 *
    138 * @since 5.3.0
  • trunk/tests/phpunit/tests/privacy/wpCreateUserRequest.php

    r50969 r55337  
    11<?php
    22/**
    3  * Test the `wp_create_user_request()` function.
     3 * Test cases for the `wp_create_user_request()` function.
    44 *
    55 * @package WordPress
    66 * @subpackage UnitTests
    77 * @since 5.2.0
    8  */
    9 
    10 /**
    11  * Tests_Privacy_wpCreateUserRequest class.
    128 *
    139 * @group privacy
    1410 * @covers ::wp_create_user_request
    15  *
    16  * @since 5.2.0
    1711 */
    1812class Tests_Privacy_wpCreateUserRequest extends WP_UnitTestCase {
  • trunk/tests/phpunit/tests/privacy/wpPrivacyCompletedRequest.php

    r50969 r55337  
    11<?php
    22/**
    3  * Test the `_wp_privacy_completed_request()` function.
     3 * Test cases for the `_wp_privacy_completed_request()` function.
    44 *
    55 * @package WordPress
    66 * @subpackage UnitTests
    77 * @since 4.9.6
    8  */
    9 
    10 /**
    11  * Tests_Privacy_wpPrivacyCompletedRequest class.
    128 *
    139 * @group privacy
    1410 * @covers ::_wp_privacy_completed_request
    15  *
    16  * @since 4.9.6
    1711 */
    1812class Tests_Privacy_wpPrivacyCompletedRequest extends WP_UnitTestCase {
  • trunk/tests/phpunit/tests/privacy/wpPrivacyDeleteOldExportFiles.php

    r51568 r55337  
    11<?php
    22/**
    3  * Define a class to test `wp_privacy_delete_old_export_files()`.
     3 * Test cases for the `wp_privacy_delete_old_export_files()` function.
    44 *
    55 * @package WordPress
    66 * @subpackage UnitTests
    77 * @since 4.9.6
    8  */
    9 
    10 /**
    11  * Test cases for `wp_privacy_delete_old_export_files()`.
    128 *
    139 * @group privacy
    1410 * @covers ::wp_privacy_delete_old_export_files
    15  *
    16  * @since 4.9.6
    1711 */
    1812class Tests_Privacy_wpPrivacyDeleteOldExportFiles extends WP_UnitTestCase {
  • trunk/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php

    r53948 r55337  
    11<?php
    22/**
    3  * Define a class to test `wp_privacy_generate_personal_data_export_file()`.
     3 * Test cases for the `wp_privacy_generate_personal_data_export_file()` function.
    44 *
    55 * @package WordPress
    66 * @subpackage UnitTests
    77 * @since 5.2.0
    8  */
    9 
    10 /**
    11  * Test cases for `wp_privacy_generate_personal_data_export_file()`.
    128 *
    139 * @group privacy
    1410 * @covers ::wp_privacy_generate_personal_data_export_file
    1511 * @requires extension zip
    16  *
    17  * @since 5.2.0
    1812 */
    1913class Tests_Privacy_wpPrivacyGeneratePersonalDataExportFile extends WP_UnitTestCase {
  • trunk/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportGroupHtml.php

    r51462 r55337  
    66 * @subpackage UnitTests
    77 * @since 5.2.0
    8  */
    9 
    10 /**
    11  * Tests_Privacy_wpPrivacyGeneratePersonalDataExportGroupHtml class.
    128 *
    139 * @group privacy
    1410 * @covers ::wp_privacy_generate_personal_data_export_group_html
    15  *
    16  * @since 5.2.0
    1711 */
    1812class Tests_Privacy_wpPrivacyGeneratePersonalDataExportGroupHtml extends WP_UnitTestCase {
  • trunk/tests/phpunit/tests/privacy/wpPrivacyProcessPersonalDataExportPage.php

    r53948 r55337  
    66 * @subpackage UnitTests
    77 * @since 5.2.0
    8  */
    9 
    10 /**
    11  * Tests_Privacy_wpPrivacyProcessPersonalDataExportPage class.
    128 *
    139 * @group privacy
    1410 * @covers ::wp_privacy_process_personal_data_export_page
    15  *
    16  * @since 5.2.0
    1711 */
    1812class Tests_Privacy_wpPrivacyProcessPersonalDataExportPage extends WP_UnitTestCase {
  • trunk/tests/phpunit/tests/privacy/wpPrivacySendErasureFulfillmentNotification.php

    r54090 r55337  
    66 * @subpackage UnitTests
    77 * @since 5.1.0
    8  */
    9 
    10 /**
    11  * Tests_Privacy_wpPrivacySendErasureFulfillmentNotification class.
    128 *
    139 * @group privacy
    1410 * @covers ::_wp_privacy_send_erasure_fulfillment_notification
    15  *
    16  * @since 5.1.0
    1711 */
    1812class Tests_Privacy_wpPrivacySendErasureFulfillmentNotification extends WP_UnitTestCase {
  • trunk/tests/phpunit/tests/privacy/wpPrivacySendPersonalDataExportEmail.php

    r51568 r55337  
    66 * @subpackage UnitTests
    77 * @since 4.9.6
    8  */
    9 
    10 /**
    11  * Tests_Privacy_wpPrivacySendPersonalDataExportEmail class.
    128 *
    139 * @group privacy
    1410 * @covers ::wp_privacy_send_personal_data_export_email
    15  *
    16  * @since 4.9.6
    1711 */
    1812class Tests_Privacy_wpPrivacySendPersonalDataExportEmail extends WP_UnitTestCase {
  • trunk/tests/phpunit/tests/privacy/wpPrivacySendRequestConfirmationNotification.php

    r54090 r55337  
    66 * @subpackage UnitTests
    77 * @since 4.9.8
    8  */
    9 
    10 /**
    11  * Tests_Privacy_wpPrivacySendRequestConfirmationNotification class.
    128 *
    139 * @group privacy
    1410 * @group user
    1511 * @covers ::_wp_privacy_send_request_confirmation_notification
    16  *
    17  * @since 4.9.8
    1812 */
    1913class Tests_Privacy_wpPrivacySendRequestConfirmationNotification extends WP_UnitTestCase {
  • trunk/tests/phpunit/tests/user/wpSendUserRequest.php

    r53489 r55337  
    44 *
    55 * @package WordPress
    6  * @since 4.9.9
    7  */
    8 
    9 /**
    10  * Tests_User_WpSendUserRequest class.
    11  *
    126 * @since 4.9.9
    137 *
Note: See TracChangeset for help on using the changeset viewer.