You appear to be a bot. Output may be restricted
Description
Unregister existing taxonomies and register defaults.Run before each test in order to clean up the global scope, in case a test forgets to unregister a taxonomy on its own, or fails before it has a chance to do so.
Usage
WP_UnitTestCase::reset_taxonomies();
Parameters
Returns
voidSource
File name: oik-batch/tests/testcase.phpLines:
1 to 6 of 6
protected function reset_taxonomies() { foreach ( get_taxonomies() as $tax ) { _unregister_taxonomy( $tax ); } create_initial_taxonomies(); }View on GitHub