Changeset 29869 for trunk/tests/phpunit/includes/testcase.php
- Timestamp:
- 10/10/2014 08:25:39 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r29860 r29869 38 38 $this->factory = new WP_UnitTest_Factory; 39 39 $this->clean_up_global_scope(); 40 $this->reset_post_types(); 41 $this->reset_taxonomies(); 40 41 /* 42 * When running core tests, ensure that post types and taxonomies 43 * are reset for each test. We skip this step for non-core tests, 44 * given the large number of plugins that register post types and 45 * taxonomies at 'init'. 46 */ 47 if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) { 48 $this->reset_post_types(); 49 $this->reset_taxonomies(); 50 } 51 42 52 $this->start_transaction(); 43 53 $this->expectDeprecated();
Note: See TracChangeset
for help on using the changeset viewer.