Issue Bug Closed

#106628DataMapperTest::dateValuesAreStoredInUtcInTextDatabaseFields makes no sense anymore

Lina Wolf 04/27/25, 15:44 updated 05/15/25, 07:14

Description

The test

TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Mapper::dateValuesAreStoredInUtcInTextDatabaseFields

Seems to make not sense. The underlying TCA looks wrong:

        'datetime_text' => [
            'exclude' => true,
            'label' => 'type=datetime, db=text',
            'config' => [
                'type' => 'datetime',
            ],
        ],
        'datetime_int' => [
            'exclude' => true,
            'label' => 'type=datetime, db=int',
            'config' => [
                'type' => 'datetime',
            ],
        ],

There is no db property, only https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ColumnsConfig/Type/Datetime/Index.html#confval-datetime-dbtype, however that one does not accept text.

Initially the ext_tables SQL definitions for these fields where different, however with the auto creation of db fields they have also been removed.

Probably the test can the field can be removed

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.