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

    r54721 r54722  
    99 * Testing Ajax compression test functionality.
    1010 *
    11  * @package    WordPress
     11 * @package WordPress
    1212 * @subpackage UnitTests
    13  * @since      3.4.0
    14  * @group      ajax
     13 * @since 3.4.0
     14 *
     15 * @group ajax
     16 *
     17 * @covers ::wp_ajax_wp_compression_test
    1518 */
    16 class Tests_Ajax_CompressionTest extends WP_Ajax_UnitTestCase {
     19class Tests_Ajax_wpAjaxWpCompressionTest extends WP_Ajax_UnitTestCase {
    1720
    1821    /**
    1922     * Test as a logged out user
    20      *
    21      * @covers ::wp_ajax_wp_compression_test
    2223     */
    2324    public function test_logged_out() {
     
    3536    /**
    3637     * Fetch the test text
    37      *
    38      * @covers ::wp_ajax_wp_compression_test
    3938     */
    4039    public function test_text() {
     
    6160     *
    6261     * @requires function gzdeflate
    63      *
    64      * @covers ::wp_ajax_wp_compression_test
    6562     */
    6663    public function test_gzdeflate() {
     
    8885     *
    8986     * @requires function gzencode
    90      *
    91      * @covers ::wp_ajax_wp_compression_test
    9287     */
    9388    public function test_gzencode() {
     
    113108    /**
    114109     * Fetch the test text (unknown encoding)
    115      *
    116      * @covers ::wp_ajax_wp_compression_test
    117110     */
    118111    public function test_unknown_encoding() {
     
    133126    /**
    134127     * Set the 'can_compress_scripts' site option to true
    135      *
    136      * @covers ::wp_ajax_wp_compression_test
    137128     */
    138129    public function test_set_yes() {
     
    173164    /**
    174165     * Set the 'can_compress_scripts' site option to false
    175      *
    176      * @covers ::wp_ajax_wp_compression_test
    177166     */
    178167    public function test_set_no() {
Note: See TracChangeset for help on using the changeset viewer.