diff --git phpunit.xml.dist phpunit.xml.dist
index 2178ce2..abf5f00 100644
|
|
|
25 | 25 | <logging> |
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> |
diff --git tests/phpunit/includes/testcase.php tests/phpunit/includes/testcase.php
index 4230164..79a29a2 100644
|
|
class WP_UnitTestCase extends PHPUnit_Framework_TestCase { |
37 | 37 | ini_set('display_errors', 1 ); |
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 | if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) { |
| 42 | $this->reset_post_types(); |
| 43 | $this->reset_taxonomies(); |
| 44 | } |
| 45 | |
42 | 46 | $this->start_transaction(); |
43 | 47 | $this->expectDeprecated(); |
44 | 48 | add_filter( 'wp_die_handler', array( $this, 'get_wp_die_handler' ) ); |