Skip to content

Commit

Permalink
exportSpss & bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
TonisOrmisson committed Nov 6, 2017
1 parent b904e0c commit c31ec15
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function exportresults()
//FIND OUT HOW MANY FIELDS WILL BE NEEDED - FOR 255 COLUMN LIMIT
if ($survey->isSaveTimings) {
//Append survey timings to the fieldmap array
$aFieldMap = createTimingsFieldMap($iSurveyID, 'full',false,false,$oSurvey->language);
$aFieldMap = createTimingsFieldMap($iSurveyID, 'full',false,false,$survey->language);
}
$iFieldCount = count($aFieldMap);

Expand Down
5 changes: 3 additions & 2 deletions tests/controllers/AdminViewsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,16 @@ public function testAdminSurveyViews(){
private function findViewTag($name,$view){
$this->openView($view);
$element = null;

$screenshot = $this->webDriver->takeScreenshot();
file_put_contents(__DIR__ . '/../_output/'.$name.'.png', $screenshot);
try{
$element = $this->webDriver->findElement(WebDriverBy::id('action::'.$name));
} catch (\Exception $e){
//throw new Exception($e->getMessage());
}
$this->assertNotEmpty($element,sprintf('FAILED viewing %s on route %s',$name,$view['route']));

$screenshot = $this->webDriver->takeScreenshot();
file_put_contents(__DIR__ . '/../_output/'.$name.'.png', $screenshot);

}

Expand Down
6 changes: 4 additions & 2 deletions tests/data/views/adminSurveyViews.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@
// FIXME these FAIL !!
//'surveyResponsesIndex' =>['route'=>'responses/sa/index/surveyid/{SID}'],
//'surveyResponsesBrowse' =>['route'=>'responses/sa/browse/surveyid/{SID}'],

// FIXME these views need an activated survey
'dataEntryView' =>['route'=>'dataentry/sa/view/surveyid/{SID}'],
'statisticsIndex' =>['route'=>'statistics/sa/index/surveyid/{SID}'],
'exportResults' =>['route'=>'export/sa/exportresults/sid/{SID}'],
'exportSpss' =>['route'=>'export/sa/exportspss/sid/{SID}'],
//'exportResults' =>['route'=>'export/sa/exportresults/surveyid/{SID}'],
//'exportSpss' =>['route'=>'export/sa/exportspss/sid/{SID}'],



Expand Down

0 comments on commit c31ec15

Please sign in to comment.