Commit 6d6c02dd authored by Carsten  Rose's avatar Carsten Rose
Browse files

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


(cherry picked from commit c0c78eda)
parent 169e3bf4
Pipeline #6794 passed with stages
in 2 minutes and 54 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