private function _flushPersistence() { foreach ($this->_multiSourcePersistenceServices as $multiSourcePersistenceService) { $multiSourcePersistenceService->flushSaveQueue(); } $sources = array(); foreach ($this->_multiSourcePersistenceBackends as $multiSourcePersistenceBackend) { $sources[] = $multiSourcePersistenceBackend->getPersistenceQueue(); } $sources = json_encode($sources); $this->_persistence->queueForSave(tubepress_api_options_Names::SOURCES, $sources); $this->_persistence->flushSaveQueue(); }
public function testFlushSaveQueueEmpty() { $this->assertNull($this->_sut->flushSaveQueue()); }