WordPress.org

Make WordPress Core

Changeset 44719


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

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

See #43218.

Location:
trunk/tests/phpunit/includes
Files:
2 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
  • trunk/tests/phpunit/includes/phpunit7/testcase.php

    r44701 r44719  
    1313 */
    1414class WP_UnitTestCase extends WP_UnitTestCase_Base {
     15
    1516    /**
    1617     * Asserts that a condition is not false.
Note: See TracChangeset for help on using the changeset viewer.