Skip to content

Commit

Permalink
Dev: Some test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Oct 27, 2017
1 parent 6787031 commit 05f9986
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/questions/DateTimeValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ protected function getQuestionSetForQ2(\Question $question, \QuestionGroup $grou
public function testBasic()
{
/*
\Yii::app()->setController(new DummyController('dummyid'));
list($question, $group, $sgqa) = self::$testHelper->getSgqa('G1Q00005', self::$surveyId);
$qset = $this->getQuestionSetForQ2($question, $group, $sgqa);
Expand Down Expand Up @@ -146,7 +145,10 @@ public function testBasic()
$result = \LimeExpressionManager::ProcessCurrentResponses();
echo '<pre>'; var_dump($_SESSION); echo '</pre>';
*/
\Yii::app()->setController(new DummyController('dummyid'));

\Yii::app()->setConfig('surveyID', self::$surveyId);
global $thissurvey;
$thissurvey = getSurveyInfo(self::$surveyId);

$runtime = new \SurveyRuntimeHelper();
Expand Down

0 comments on commit 05f9986

Please sign in to comment.