/** * Clean up the testing environment before the next test. * * @return void */ public function tearDown() { if ($this->app) { $this->app->flush(); } return parent::tearDown(); }
/** * @inheritdoc */ protected function tearDown() { $this->destroyApplication(); $this->unloadFixtures(); parent::tearDown(); }
/** * @inheritdoc */ protected function tearDown() { $this->destroyApplication(); parent::tearDown(); }
protected function tearDown() { parent::tearDown(); }
function tearDown() { global $wpdb, $wp_query, $wp, $post; $wpdb->query('ROLLBACK'); if (is_multisite()) { while (ms_is_switched()) { restore_current_blog(); } } $wp_query = new \WP_Query(); $wp = new \WP(); $post = null; remove_theme_support('html5'); remove_filter('query', array($this, '_create_temporary_tables')); remove_filter('query', array($this, '_drop_temporary_tables')); remove_filter('wp_die_handler', array($this, 'get_wp_die_handler')); $this->_restore_hooks(); wp_set_current_user(0); parent::tearDown(); }
protected function tearDown() { $fixter = new RedisFixts(); $fixter->deleteFixtures(); parent::tearDown(); }