Ejemplo n.º 1
0
 /**
  * @covers AppSolr::synchronizePendingApplications
  *
  * @depends testApplicationChangedUpdateSolrQueue
  */
 public function testSynchronizePendingApplications()
 {
     //count number of indexed applications
     $count = $this->object->getCountApplicationsSearchIndex();
     print "Total applications:" . $count;
     //delete application marked in previous test
     $this->object->synchronizePendingApplications();
     $count2 = $this->object->getCountApplicationsSearchIndex();
     print "Total applications deleted record:" . $count2;
     $this->assertEquals($count, $count2 + 1, 'Error synchronizing applications in search index');
     //leave index as in the beginning
     $this->object->reindexAllApplications();
     $count3 = $this->object->getCountApplicationsSearchIndex();
     $this->assertEquals($count, $count3, 'Error restoring deleted application in search index');
 }