public function tearDown() { if ($this->oldProcessor) { SearchUpdater::$processor = $this->oldProcessor; } Config::unnest(); Injector::inst()->unregisterNamedObject('QueuedJobService'); FullTextSearch::force_index_list(); parent::tearDown(); }
/** * Do something with the recorded dirty IDs, where that "something" depends on the value of self::$update_method, * either immediately update the indexes, queue a messsage to update the indexes at some point in the future, or * just throw the dirty IDs away. */ static function flush_dirty_indexes() { if (!self::$processor) { return; } self::$processor->triggerProcessing(); self::$processor = null; }