Changeset 54865 for trunk/tests/phpunit/includes/abstract-testcase.php
- Timestamp:
- 11/22/2022 09:25:27 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r54366 r54865 323 323 * 324 324 * Stores $wp_actions, $wp_current_filter, and $wp_filter on a class variable 325 * so they can be restored on tear Down() using _restore_hooks().325 * so they can be restored on tear_down() using _restore_hooks(). 326 326 * 327 327 * @global array $wp_actions … … 341 341 342 342 /** 343 * Restores the hook-related globals to their state at set Up()343 * Restores the hook-related globals to their state at set_up() 344 344 * so that future tests aren't affected by hooks set during this last test. 345 345 * … … 1366 1366 * Deletes files added to the `uploads` directory during tests. 1367 1367 * 1368 * This method works in tandem with the `setUp()` and `rmdir()` methods: 1369 * - `setUp()` scans the `uploads` directory before every test, and stores its contents inside of the 1370 * `$ignore_files` property. 1371 * - `rmdir()` and its helper methods only delete files that are not listed in the `$ignore_files` property. If 1372 * called during `tearDown()` in tests, this will only delete files added during the previously run test. 1368 * This method works in tandem with the `set_up()` and `rmdir()` methods: 1369 * - `set_up()` scans the `uploads` directory before every test, and stores 1370 * its contents inside of the `$ignore_files` property. 1371 * - `rmdir()` and its helper methods only delete files that are not listed 1372 * in the `$ignore_files` property. If called during `tear_down()` in tests, 1373 * this will only delete files added during the previously run test. 1373 1374 */ 1374 1375 public function remove_added_uploads() {
Note: See TracChangeset
for help on using the changeset viewer.