Changeset 29869
- Timestamp:
- 10/10/2014 08:25:39 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpunit.xml.dist
r25165 r29869 26 26 <log type="junit" target="tests/phpunit/build/logs/junit.xml" logIncompleteSkipped="false"/> 27 27 </logging> 28 <php> 29 <const name="WP_RUN_CORE_TESTS" value="1" /> 30 </php> 28 31 </phpunit> -
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.