Make WordPress Core


Ignore:
Timestamp:
01/30/2019 02:30:42 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Move WP_UnitTestCase_Base::assertPostConditions() to a more appropriate place.

See #43218.

File:
1 edited

Legend:

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

    r44701 r44719  
    138138
    139139    /**
    140      * Detect post-test failure conditions.
    141      *
    142      * We use this method to detect expectedDeprecated and expectedIncorrectUsage annotations.
    143      *
    144      * @since 4.2.0
    145      */
    146     protected function assertPostConditions() {
    147         $this->expectedDeprecated();
    148     }
    149 
    150     /**
    151140     * After a test method runs, reset any state in WordPress the test method might have changed.
    152141     */
     
    447436            $this->assertEmpty( $errors, implode( "\n", $errors ) );
    448437        }
     438    }
     439
     440    /**
     441     * Detect post-test failure conditions.
     442     *
     443     * We use this method to detect expectedDeprecated and expectedIncorrectUsage annotations.
     444     *
     445     * @since 4.2.0
     446     */
     447    protected function assertPostConditions() {
     448        $this->expectedDeprecated();
    449449    }
    450450
Note: See TracChangeset for help on using the changeset viewer.