Make WordPress Core


Ignore:
Timestamp:
10/30/2022 01:05:06 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Tests: Rename classes in phpunit/tests/ajax/ per the naming conventions.

This updates the test classes to match the names of the functions being tested.

Includes moving the @covers tags from individual test methods to the class DocBlocks.

Reference: Writing PHP Tests: Naming and Organization.

Follow-up to [47780], [48911], [49327], [50291], [50292], [50342], [50452], [50453], [50456], [50967], [50968], [50969], [51491], [51492], [51493], [51623], [51639], [51646], [51650], [51651], [51860], [52264], [52265], [53489], [53561], [54704].

See #56793.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/ajax/wpAjaxSendAttachmentToEditor.php

    r54721 r54722  
    99 *
    1010 * @group ajax
     11 *
     12 * @covers ::wp_ajax_send_attachment_to_editor
    1113 */
    12 class Tests_Ajax_Attachments extends WP_Ajax_UnitTestCase {
     14class Tests_Ajax_wpAjaxSendAttachmentToEditor extends WP_Ajax_UnitTestCase {
     15
    1316    /**
    1417     * @ticket 36578
    1518     *
    16      * @covers ::wp_ajax_send_attachment_to_editor
    1719     * @covers ::get_image_send_to_editor
    1820     */
     
    5961     * @ticket 36578
    6062     * @group ms-excluded
    61      *
    62      * @covers ::wp_ajax_send_attachment_to_editor
    6363     */
    6464    public function test_wp_ajax_send_attachment_to_editor_should_return_a_link() {
Note: See TracChangeset for help on using the changeset viewer.