DateTimeDefaultAnswerExpressionTest

Extends \ls\tests\TestBaseClass

since 2017-06-16
group

datetimedefaultanswer

package

Default

Methods

importSurvey

importSurvey(string $fileName) : void
inherited static

Arguments

$fileName

string

setUpBeforeClass

setUpBeforeClass() 
inherited static

tearDownAfterClass

tearDownAfterClass() 
inherited static

Test full default answer expression, date('Y-m-d H:i').

testCorrectDefaultAnswerExpression() 
group

expr2

Test the question with lacking default answer expression, date('Y-m-d'), will be filled with ' 00:00' to work with createFromFormat.

testDefaultAnswerExpressionFill() 
group

expr

Test default answer, date format HH:MM, expression date('HH:ii'). Return empty value.

testWrongDefaultAnswerExpression() 

Properties

testHelper

testHelper : \ls\tests\TestHelper
inherited static
var

Type(s)

\ls\tests\TestHelper

tempFolder

tempFolder : string
inherited static
var

Type(s)

string

screenshotsFolder

screenshotsFolder : string
inherited static
var

Type(s)

string

surveysFolder

surveysFolder : string
inherited static
var

Type(s)

string

dataFolder

dataFolder : string
inherited static
var

Type(s)

string

viewsFolder

viewsFolder : string
inherited static
var

Type(s)

string

testSurvey

testSurvey : \Survey
inherited static
var

Type(s)

\Survey

surveyId

surveyId : integer
inherited static
var

Type(s)

integer