Skip to content

Commit

Permalink
Dev: Add test DummyController
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jul 4, 2017
1 parent 023b5bc commit 210ccd2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
11 changes: 11 additions & 0 deletions tests/DummyController.php
@@ -0,0 +1,11 @@
<?php

namespace ls\tests;

class DummyController extends \CController
{
/**
* @var string
*/
public $sTemplate = 'dummyvalue';
}
1 change: 1 addition & 0 deletions tests/bootstrap.php
Expand Up @@ -230,3 +230,4 @@

require_once(__DIR__ . '/TestHelper.php');
require_once(__DIR__ . '/TestBaseClass.php');
require_once(__DIR__ . '/DummyController.php');
6 changes: 3 additions & 3 deletions tests/questions/DateTimeDefaultAnswerExpressionTest.php
Expand Up @@ -68,7 +68,7 @@ public function testDefaultAnswerExpressionFill()
$surveyOptions = self::$testHelper->getSurveyOptions(self::$surveyId);

\Yii::app()->setConfig('surveyID', self::$surveyId);
\Yii::app()->setController(new \CController('dummyid'));
\Yii::app()->setController(new DummyController('dummyid'));
buildsurveysession(self::$surveyId);
$surveyMode = 'group';
$LEMdebugLevel = 0;
Expand Down Expand Up @@ -130,7 +130,7 @@ public function testCorrectDefaultAnswerExpression()
$surveyOptions = self::$testHelper->getSurveyOptions(self::$surveyId);

\Yii::app()->setConfig('surveyID', self::$surveyId);
\Yii::app()->setController(new \CController('dummyid'));
\Yii::app()->setController(new DummyController('dummyid'));
buildsurveysession(self::$surveyId);
$surveyMode = 'group';
$LEMdebugLevel = 0;
Expand Down Expand Up @@ -191,7 +191,7 @@ public function testWrongDefaultAnswerExpression()
$surveyOptions = self::$testHelper->getSurveyOptions(self::$surveyId);

\Yii::app()->setConfig('surveyID', self::$surveyId);
\Yii::app()->setController(new \CController('dummyid'));
\Yii::app()->setController(new DummyController('dummyid'));
buildsurveysession(self::$surveyId);
$surveyMode = 'group';
$LEMdebugLevel = 0;
Expand Down

0 comments on commit 210ccd2

Please sign in to comment.