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/wpAjaxAddTag.php

    r54721 r54722  
    1010 *
    1111 * @group ajax
     12 *
     13 * @covers ::wp_ajax_add_tag
    1214 */
    13 class Tests_Ajax_AddTag extends WP_Ajax_UnitTestCase {
     15class Tests_Ajax_wpAjaxAddTag extends WP_Ajax_UnitTestCase {
    1416
    1517    /**
     
    1820     * @ticket 42937
    1921     *
    20      * @covers ::wp_ajax_add_tag
    2122     * @covers ::wp_insert_term
    2223     *
     
    9495    /**
    9596     * @ticket 42937
    96      *
    97      * @covers ::wp_ajax_add_tag
    9897     */
    9998    public function test_adding_category_without_capability_should_error() {
     
    115114     * @ticket 42937
    116115     *
    117      * @covers ::wp_ajax_add_tag
    118116     * @covers ::wp_insert_term
    119117     */
Note: See TracChangeset for help on using the changeset viewer.