Make WordPress Core


Ignore:
Timestamp:
05/14/2021 07:07:47 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Update documentation in phpunit/includes/abstract-testcase.php per the documentation standards.

Follow-up to [44902].

See #52628.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/abstract-testcase.php

    r50697 r50913  
    139139
    140140        /**
    141          * After a test method runs, reset any state in WordPress the test method might have changed.
     141         * After a test method runs, resets any state in WordPress the test method might have changed.
    142142         */
    143143        public function tearDown() {
    … …  
    180180
    181181        /**
    182          * Allow tests to be skipped on some automated runs.
     182         * Allows tests to be skipped on some automated runs.
    183183         *
    184184         * For test runs on GitHub Actions for something other than trunk/master,
    … …  
    201201
    202202        /**
    203          * Allow tests to be skipped when Multisite is not in use.
     203         * Allows tests to be skipped when Multisite is not in use.
    204204         *
    205205         * Use in conjunction with the ms-required group.
    … …  
    212212
    213213        /**
    214          * Allow tests to be skipped when Multisite is in use.
     214         * Allows tests to be skipped when Multisite is in use.
    215215         *
    216216         * Use in conjunction with the ms-excluded group.
    … …  
    223223
    224224        /**
    225          * Allow tests to be skipped if the HTTP request times out.
     225         * Allows tests to be skipped if the HTTP request times out.
    226226         *
    227227         * @param array|WP_Error $response HTTP response.
    … …  
    246246
    247247        /**
    248          * Unregister existing post types and register defaults.
     248         * Unregisters existing post types and register defaults.
    249249         *
    250250         * Run before each test in order to clean up the global scope, in case
    … …  
    262262
    263263        /**
    264          * Unregister existing taxonomies and register defaults.
     264         * Unregisters existing taxonomies and register defaults.
    265265         *
    266266         * Run before each test in order to clean up the global scope, in case
    … …  
    276276
    277277        /**
    278          * Unregister non-built-in post statuses.
     278         * Unregisters non-built-in post statuses.
    279279         */
    280280        protected function reset_post_statuses() {
    … …  
    285285
    286286        /**
    287          * Reset `$_SERVER` variables
     287         * Resets `$_SERVER` variables
    288288         */
    289289        protected function reset__SERVER() {
    … …  
    353353
    354354        /**
    355          * Clean up any registered meta keys.
     355         * Cleans up any registered meta keys.
    356356         *
    357357         * @since 5.1.0
    … …  
    385385
    386386        /**
    387          * Commit the queries in a transaction.
     387         * Commits the queries in a transaction.
    388388         *
    389389         * @since 4.1.0
    … …  
    510510
    511511        /**
    512          * Detect post-test failure conditions.
     512         * Detects post-test failure conditions.
    513513         *
    514514         * We use this method to detect expectedDeprecated and expectedIncorrectUsage annotations.
    … …  
    521521
    522522        /**
    523          * Declare an expected `_deprecated_function()` or `_deprecated_argument()` call from within a test.
     523         * Declares an expected `_deprecated_function()` or `_deprecated_argument()` call from within a test.
    524524         *
    525525         * @since 4.2.0
    … …  
    533533
    534534        /**
    535          * Declare an expected `_doing_it_wrong()` call from within a test.
     535         * Declares an expected `_doing_it_wrong()` call from within a test.
    536536         *
    537537         * @since 4.2.0
    … …  
    627627         */
    628628        public function assertNotIXRError( $actual, $message = '' ) {
    629                 if ( $actual instanceof IXR_Error && '' === $message ) {
     629                if ( '' === $message && $actual instanceof IXR_Error ) {
    630630                        $message = $actual->message;
    631631                }
    … …  
    11561156
    11571157        /**
    1158          * Retrieves all directories contained inside a directory and stores them in the `$matched_dirs` property. Hidden
    1159          * directories are ignored.
     1158         * Retrieves all directories contained inside a directory and stores them in the `$matched_dirs` property.
     1159         * Hidden directories are ignored.
    11601160         *
    11611161         * This is a helper for the `delete_folders()` method.
Note: See TracChangeset for help on using the changeset viewer.