예제 #1
0
 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();
 }
예제 #2
0
 public function testFlushSaveQueueEmpty()
 {
     $this->assertNull($this->_sut->flushSaveQueue());
 }