DateTimeDefaultAnswerExpressionTest

Extends \ls\tests\TestBaseClass

since 2017-06-16

Methods

Import survey in tests/surveys/.

setupBeforeClass() 
static

Destroy what had been imported.

teardownAfterClass() 
static

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 full default answer expression, date('Y-m-d H:i').

testCorrectDefaultAnswerExpression() 
group

expr2

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

testWrongDefaultAnswerExpression() 

__construct

__construct() 
inherited

Properties

surveyId

surveyId : int
static
var

Type(s)

int

testHelper

testHelper : \ls\tests\TestHelper
inherited static
var

Type(s)

\ls\tests\TestHelper