public function checkconsistencyAction()
 {
     if (!$this->model->getFeatureDisabled() && $this->getRequest()->isPost()) {
         $jobId = $this->model->createJob();
         if (!is_null($jobId)) {
             return $this->_redirectToAndExit('index', $this->view->translate('admin_indexmaintenance_jobsumitted', $jobId));
         }
     }
     return $this->_redirectToAndExit('index');
 }
 public function testSubmitJobAndExecuteSynchronosly()
 {
     $model = new Admin_Model_IndexMaintenance();
     $id = $model->createJob();
     $this->assertFalse($id);
 }