Changeset 50913
- Timestamp:
- 05/14/2021 07:07:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r50697 r50913 139 139 140 140 /** 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. 142 142 */ 143 143 public function tearDown() { … … 180 180 181 181 /** 182 * Allow tests to be skipped on some automated runs.182 * Allows tests to be skipped on some automated runs. 183 183 * 184 184 * For test runs on GitHub Actions for something other than trunk/master, … … 201 201 202 202 /** 203 * Allow tests to be skipped when Multisite is not in use.203 * Allows tests to be skipped when Multisite is not in use. 204 204 * 205 205 * Use in conjunction with the ms-required group. … … 212 212 213 213 /** 214 * Allow tests to be skipped when Multisite is in use.214 * Allows tests to be skipped when Multisite is in use. 215 215 * 216 216 * Use in conjunction with the ms-excluded group. … … 223 223 224 224 /** 225 * Allow tests to be skipped if the HTTP request times out.225 * Allows tests to be skipped if the HTTP request times out. 226 226 * 227 227 * @param array|WP_Error $response HTTP response. … … 246 246 247 247 /** 248 * Unregister existing post types and register defaults.248 * Unregisters existing post types and register defaults. 249 249 * 250 250 * Run before each test in order to clean up the global scope, in case … … 262 262 263 263 /** 264 * Unregister existing taxonomies and register defaults.264 * Unregisters existing taxonomies and register defaults. 265 265 * 266 266 * Run before each test in order to clean up the global scope, in case … … 276 276 277 277 /** 278 * Unregister non-built-in post statuses.278 * Unregisters non-built-in post statuses. 279 279 */ 280 280 protected function reset_post_statuses() { … … 285 285 286 286 /** 287 * Reset `$_SERVER` variables287 * Resets `$_SERVER` variables 288 288 */ 289 289 protected function reset__SERVER() { … … 353 353 354 354 /** 355 * Clean up any registered meta keys.355 * Cleans up any registered meta keys. 356 356 * 357 357 * @since 5.1.0 … … 385 385 386 386 /** 387 * Commit the queries in a transaction.387 * Commits the queries in a transaction. 388 388 * 389 389 * @since 4.1.0 … … 510 510 511 511 /** 512 * Detect post-test failure conditions.512 * Detects post-test failure conditions. 513 513 * 514 514 * We use this method to detect expectedDeprecated and expectedIncorrectUsage annotations. … … 521 521 522 522 /** 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. 524 524 * 525 525 * @since 4.2.0 … … 533 533 534 534 /** 535 * Declare an expected `_doing_it_wrong()` call from within a test.535 * Declares an expected `_doing_it_wrong()` call from within a test. 536 536 * 537 537 * @since 4.2.0 … … 627 627 */ 628 628 public function assertNotIXRError( $actual, $message = '' ) { 629 if ( $actual instanceof IXR_Error && '' === $message) {629 if ( '' === $message && $actual instanceof IXR_Error ) { 630 630 $message = $actual->message; 631 631 } … … 1156 1156 1157 1157 /** 1158 * Retrieves all directories contained inside a directory and stores them in the `$matched_dirs` property. Hidden1159 * directories are ignored.1158 * Retrieves all directories contained inside a directory and stores them in the `$matched_dirs` property. 1159 * Hidden directories are ignored. 1160 1160 * 1161 1161 * This is a helper for the `delete_folders()` method.
Note: See TracChangeset
for help on using the changeset viewer.