Commit c0c78eda authored by Carsten  Rose's avatar Carsten Rose
Browse files

WIP Update several unit test - commit to check if CI unit tests behave same

parent e597fa5f
Pipeline #6765 passed with stages
in 3 minutes and 7 seconds
......@@ -984,8 +984,8 @@ class SupportTest extends TestCase {
$expected = $formElement;
Support::adjustFeToColumnDefinition($formElement, 'varchar(255)');
$expected[FE_CHECK_TYPE] = SANITIZE_ALLOW_ALL;
$expected[FE_MAX_LENGTH] = '255';
// $expected[FE_MAX_LENGTH] = '';
// $expected[FE_MAX_LENGTH] = '255';
$expected[FE_MAX_LENGTH] = '';
if (isset($formElement[FE_MAX_LENGTH_COLUMN])) {
$expected[FE_MAX_LENGTH_COLUMN] = '255';
}
......@@ -996,8 +996,8 @@ class SupportTest extends TestCase {
$expected = $formElement;
Support::adjustFeToColumnDefinition($formElement, 'varchar(64)');
$expected[FE_CHECK_TYPE] = SANITIZE_ALLOW_ALNUMX;
$expected[FE_MAX_LENGTH] = 64;
// $expected[FE_MAX_LENGTH] = '';
// $expected[FE_MAX_LENGTH] = 64;
$expected[FE_MAX_LENGTH] = '';
if (isset($formElement[FE_MAX_LENGTH_COLUMN])) {
$expected[FE_MAX_LENGTH_COLUMN] = '64';
}
......@@ -1019,7 +1019,7 @@ class SupportTest extends TestCase {
$formElement[FE_CHECK_TYPE] = SANITIZE_ALLOW_ALNUMX;
$expected = $formElement;
Support::adjustFeToColumnDefinition($formElement, 'datetime');
$expected[FE_MAX_LENGTH] = strlen('0000/00/00 00:00:00');
// $expected[FE_MAX_LENGTH] = strlen('0000/00/00 00:00:00');
if (isset($formElement[FE_MAX_LENGTH_COLUMN])) {
$expected[FE_MAX_LENGTH_COLUMN] = strlen('0000/00/00 00:00:00');
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment