Merge pull request #6503 from maxrice/6501-fix-failing-tests

Register post types before each unit test
This commit is contained in:
Claudio Sanches 2014-10-09 16:30:04 -03:00
commit c960edb640
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@ class WC_Unit_Test_Case extends WP_UnitTestCase {
add_filter( 'woocommerce_session_handler', array( $this, 'set_mock_session_handler' ) ); add_filter( 'woocommerce_session_handler', array( $this, 'set_mock_session_handler' ) );
$this->setOutputCallback( array( $this, 'filter_output' ) ); $this->setOutputCallback( array( $this, 'filter_output' ) );
// register post types before each test
WC_Post_types::register_post_types();
WC_Post_types::register_taxonomies();
} }
/** /**