function setUp() { parent::setUp(); _clean_term_filters(); // insert one term into every post taxonomy // otherwise term_ids and term_taxonomy_ids might be identical, which could mask bugs $term = rand_str(); foreach(get_object_taxonomies('post') as $tax) wp_insert_term( $term, $tax ); }
function setUp() { parent::setUp(); _clean_term_filters(); wp_cache_delete('last_changed', 'terms'); $this->config = Factory::create(WPDC_CORE_CONFIGS_DIR . 'cpt-foo.php'); $this->cpt = new Custom_Post_Type($this->config, $this->post_type); $this->cpt->register(); $this->tax_config = Factory::create(WPDC_CORE_CONFIGS_DIR . 'tax-foo.php'); }
function setUp() { parent::setUp(); _clean_term_filters(); wp_cache_delete('last_changed', 'terms'); }