MDL-55804 forms: Return exported data through _prepareValue

This commit is contained in:
David Monllao
2016-09-27 08:12:08 +08:00
parent 6aec209125
commit 8b27687b5f
5 changed files with 9 additions and 13 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ class core_form_dateselector_testcase extends advanced_testcase {
$el->_createElements();
$submitvalues = array('dateselector' => $vals);
$this->assertSame(array('dateselector' => $vals['timestamp']), $el->exportValue($submitvalues),
$this->assertSame(array('dateselector' => $vals['timestamp']), $el->exportValue($submitvalues, true),
"Please check if timezones are updated (Site adminstration -> location -> update timezone)");
}
}