WordPress.org

Make WordPress Core

Changeset 45607 for trunk/phpcs.xml.dist


Ignore:
Timestamp:
07/08/2019 12:55:20 AM (12 months ago)
Author:
pento
Message:

Coding Standards: Fix the remaining issues in /tests.

All PHP files in /tests now conform to the PHP coding standards, or have exceptions appropriately marked.

Travis now also runs phpcs on the /tests directory, any future changes to these files must conform entirely to the WordPress PHP coding standards. 🎉

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcs.xml.dist

    r45604 r45607  
    186186    <rule ref="WordPress.Files.FileName">
    187187        <properties>
    188             <property name="custom_test_class_whitelist" type="array" value="WP_UnitTestCase,WP_Ajax_UnitTestCase,WP_Canonical_UnitTestCase,WP_Test_REST_TestCase,WP_Test_REST_Controller_Testcase,WP_Test_REST_Post_Type_Controller_Testcase,WP_XMLRPC_UnitTestCase"/>
     188            <property name="custom_test_class_whitelist" type="array">
     189                <!-- Test case parent classes -->
     190                <element value="WP_UnitTestCase"/>
     191                <element value="WP_Ajax_UnitTestCase"/>
     192                <element value="WP_Canonical_UnitTestCase"/>
     193                <element value="WP_Test_REST_TestCase"/>
     194                <element value="WP_Test_REST_Controller_Testcase"/>
     195                <element value="WP_Test_REST_Post_Type_Controller_Testcase"/>
     196                <element value="WP_XMLRPC_UnitTestCase"/>
     197                <element value="WP_Filesystem_UnitTestCase"/>
     198                <element value="WP_Image_UnitTestCase"/>
     199                <element value="WP_HTTP_UnitTestCase"/>
     200                <element value="WP_Tests_Image_Resize_UnitTestCase"/>
     201                <element value="WP_Import_UnitTestCase"/>
     202                <element value="Tests_Query_Conditionals"/>
     203
     204                <!-- Mock classes -->
     205                <element value="Spy_REST_Server"/>
     206                <element value="WP_REST_Test_Controller"/>
     207                <element value="WP_Image_Editor_Mock"/>
     208                <element value="WP_Filesystem_MockFS"/>
     209                <element value="MockPHPMailer"/>
     210                <element value="MockAction"/>
     211                <element value="WP_Object_Cache"/>
     212
     213                <!-- PHPUnit helpers -->
     214                <element value="TracTickets"/>
     215                <element value="WP_PHPUnit_Util_Getopt"/>
     216                <element value="PHPUnit_Util_Test"/>
     217                <element value="WPProfiler"/>
     218                <element value="SpeedTrapListener"/>
     219                <element value="PHPUnit_Framework_Exception"/>
     220            </property>
    189221        </properties>
    190222    </rule>
Note: See TracChangeset for help on using the changeset viewer.