‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest:

Public Member Functions

 calcAgeReturnsExpectedValues (int $seconds, string $expectedLabel)
 
 getProcessedValueForZeroStringIsZero ()
 
 getProcessedValueForGroup ()
 
 getProcessedValueForFlexNull ()
 
 getProcessedValueForDatetimeDbTypeDateNull ()
 
 getProcessedValueForDatetimeDbTypeDatetime ()
 
 getProcessedValueForDatetimeDbTypeDatetimeNull ()
 
 getProcessedValueForDatetimeDbTypeDate ()
 
 getProcessedValueForFlex ()
 
 getProcessedValueForGroupWithOneAllowedTable ()
 
 getProcessedValueForGroupWithMultipleAllowedTables ()
 
 getProcessedValueForSelectWithMMRelation ()
 
 getProcessedValueDisplaysAgeForDateInputFieldsIfSettingAbsent ()
 
 getProcessedValueHandlesAgeDisplayCorrectly (bool|int $input, string $expected)
 
 getProcessedValueForCheckWithSingleItem ()
 
 getProcessedValueForCheckWithSingleItemInvertStateDisplay ()
 
 getCommonSelectFieldsReturnsCorrectFields (string $table, string $prefix, array $presetFields, array $tca, string $expectedFields='')
 
 getLabelFromItemlistReturnsCorrectFields (string $table, string $col, string $key, array $tca, ?string $expectedLabel='')
 
 getLabelFromItemListMergedReturnsCorrectFields (int $pageId, string $table, string $column, string $key, array $tca, string $expectedLabel='')
 
 getLabelsFromItemsListReturnsCorrectValue (string $table, string $col, string $keyList, array $tca, array $pageTsConfig, string $expectedLabel)
 
 getProcessedValueReturnsLabelsForExistingValuesSolely ()
 
 getProcessedValueReturnsPlainValueIfItemIsNotFound ()
 
 dateTimeAgeReturnsCorrectValues ()
 
 purgeComputedPropertyNamesRemovesPropertiesStartingWithUnderscore ()
 
 purgeComputedPropertiesFromRecordRemovesPropertiesStartingWithUnderscore ()
 
 splitTableUid ($input, $expected)
 
 returnNullForMissingTcaConfigInResolveFileReferences ()
 
 returnNullForUnfitTableConfigInResolveFileReferences (array $config)
 
 workspaceOLDoesNotChangeValuesForNoBeUserAvailable ()
 
 resolveFileReferencesReturnsEmptyResultForNoReferencesAvailable ()
 
 wsMapIdReturnsLiveIdIfNoBeUserIsAvailable ()
 
 getAllowedFieldsForTableReturnsEmptyArrayOnBrokenTca ()
 
 getAllowedFieldsForTableReturnsUniqueList ()
 

Static Public Member Functions

static calcAgeDataProvider ()
 
static inputTypeDateDisplayOptions ()
 
static getCommonSelectFieldsReturnsCorrectFieldsDataProvider ()
 
static getLabelFromItemlistReturnsCorrectFieldsDataProvider ()
 
static getLabelFromItemListMergedReturnsCorrectFieldsDataProvider ()
 
static getLabelsFromItemsListDataProvider ()
 
static splitTableUidDataProvider ()
 
static unfitResolveFileReferencesTableConfig ()
 

Protected Attributes

bool $resetSingletonInstances = true
 

Detailed Description

Definition at line 36 of file BackendUtilityTest.php.

Member Function Documentation

◆ calcAgeDataProvider()

static TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::calcAgeDataProvider ( )
static

Definition at line 40 of file BackendUtilityTest.php.

◆ calcAgeReturnsExpectedValues()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::calcAgeReturnsExpectedValues ( int  $seconds,
string  $expectedLabel 
)

Definition at line 116 of file BackendUtilityTest.php.

◆ dateTimeAgeReturnsCorrectValues()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::dateTimeAgeReturnsCorrectValues ( )

Definition at line 1102 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getAllowedFieldsForTableReturnsEmptyArrayOnBrokenTca()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getAllowedFieldsForTableReturnsEmptyArrayOnBrokenTca ( )

Definition at line 1279 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getAllowedFieldsForTableReturnsUniqueList()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getAllowedFieldsForTableReturnsUniqueList ( )

Definition at line 1286 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getCommonSelectFieldsReturnsCorrectFields()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getCommonSelectFieldsReturnsCorrectFields ( string  $table,
string  $prefix,
array  $presetFields,
array  $tca,
string  $expectedFields = '' 
)

Definition at line 761 of file BackendUtilityTest.php.

References $GLOBALS, and $tca.

◆ getCommonSelectFieldsReturnsCorrectFieldsDataProvider()

static TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getCommonSelectFieldsReturnsCorrectFieldsDataProvider ( )
static

Definition at line 664 of file BackendUtilityTest.php.

◆ getLabelFromItemListMergedReturnsCorrectFields()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getLabelFromItemListMergedReturnsCorrectFields ( int  $pageId,
string  $table,
string  $column,
string  $key,
array  $tca,
string  $expectedLabel = '' 
)

Definition at line 935 of file BackendUtilityTest.php.

References $GLOBALS, and $tca.

◆ getLabelFromItemListMergedReturnsCorrectFieldsDataProvider()

static TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getLabelFromItemListMergedReturnsCorrectFieldsDataProvider ( )
static

Definition at line 887 of file BackendUtilityTest.php.

◆ getLabelFromItemlistReturnsCorrectFields()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getLabelFromItemlistReturnsCorrectFields ( string  $table,
string  $col,
string  $key,
array  $tca,
?string  $expectedLabel = '' 
)

Definition at line 862 of file BackendUtilityTest.php.

References $GLOBALS, and $tca.

◆ getLabelFromItemlistReturnsCorrectFieldsDataProvider()

static TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getLabelFromItemlistReturnsCorrectFieldsDataProvider ( )
static

Definition at line 773 of file BackendUtilityTest.php.

◆ getLabelsFromItemsListDataProvider()

static TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getLabelsFromItemsListDataProvider ( )
static

Definition at line 948 of file BackendUtilityTest.php.

◆ getLabelsFromItemsListReturnsCorrectValue()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getLabelsFromItemsListReturnsCorrectValue ( string  $table,
string  $col,
string  $keyList,
array  $tca,
array  $pageTsConfig,
string  $expectedLabel 
)

Definition at line 1019 of file BackendUtilityTest.php.

References $GLOBALS, and $tca.

◆ getProcessedValueDisplaysAgeForDateInputFieldsIfSettingAbsent()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueDisplaysAgeForDateInputFieldsIfSettingAbsent ( )

Definition at line 531 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getProcessedValueForCheckWithSingleItem()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueForCheckWithSingleItem ( )

Definition at line 604 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getProcessedValueForCheckWithSingleItemInvertStateDisplay()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueForCheckWithSingleItemInvertStateDisplay ( )

Definition at line 634 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getProcessedValueForDatetimeDbTypeDate()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueForDatetimeDbTypeDate ( )

Definition at line 246 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getProcessedValueForDatetimeDbTypeDateNull()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueForDatetimeDbTypeDateNull ( )

Definition at line 180 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getProcessedValueForDatetimeDbTypeDatetime()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueForDatetimeDbTypeDatetime ( )

Definition at line 202 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getProcessedValueForDatetimeDbTypeDatetimeNull()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueForDatetimeDbTypeDatetimeNull ( )

Definition at line 225 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getProcessedValueForFlex()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueForFlex ( )

Definition at line 271 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getProcessedValueForFlexNull()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueForFlexNull ( )

Definition at line 160 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getProcessedValueForGroup()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueForGroup ( )

Definition at line 140 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getProcessedValueForGroupWithMultipleAllowedTables()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueForGroupWithMultipleAllowedTables ( )

Definition at line 376 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getProcessedValueForGroupWithOneAllowedTable()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueForGroupWithOneAllowedTable ( )

Definition at line 314 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getProcessedValueForSelectWithMMRelation()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueForSelectWithMMRelation ( )

Definition at line 444 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getProcessedValueForZeroStringIsZero()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueForZeroStringIsZero ( )

Definition at line 122 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getProcessedValueHandlesAgeDisplayCorrectly()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueHandlesAgeDisplayCorrectly ( bool|int  $input,
string  $expected 
)

Definition at line 578 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getProcessedValueReturnsLabelsForExistingValuesSolely()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueReturnsLabelsForExistingValuesSolely ( )

Definition at line 1049 of file BackendUtilityTest.php.

References $GLOBALS, and $tca.

◆ getProcessedValueReturnsPlainValueIfItemIsNotFound()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueReturnsPlainValueIfItemIsNotFound ( )

Definition at line 1076 of file BackendUtilityTest.php.

References $GLOBALS, and $tca.

◆ inputTypeDateDisplayOptions()

static TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::inputTypeDateDisplayOptions ( )
static

Definition at line 554 of file BackendUtilityTest.php.

◆ purgeComputedPropertiesFromRecordRemovesPropertiesStartingWithUnderscore()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::purgeComputedPropertiesFromRecordRemovesPropertiesStartingWithUnderscore ( )

Definition at line 1126 of file BackendUtilityTest.php.

References TYPO3\CMS\Webhooks\Message\$record.

◆ purgeComputedPropertyNamesRemovesPropertiesStartingWithUnderscore()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::purgeComputedPropertyNamesRemovesPropertiesStartingWithUnderscore ( )

Definition at line 1114 of file BackendUtilityTest.php.

◆ resolveFileReferencesReturnsEmptyResultForNoReferencesAvailable()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::resolveFileReferencesReturnsEmptyResultForNoReferencesAvailable ( )

Definition at line 1241 of file BackendUtilityTest.php.

References $GLOBALS.

◆ returnNullForMissingTcaConfigInResolveFileReferences()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::returnNullForMissingTcaConfigInResolveFileReferences ( )

Definition at line 1172 of file BackendUtilityTest.php.

References $GLOBALS.

◆ returnNullForUnfitTableConfigInResolveFileReferences()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::returnNullForUnfitTableConfigInResolveFileReferences ( array  $config)

Definition at line 1182 of file BackendUtilityTest.php.

References $GLOBALS.

◆ splitTableUid()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::splitTableUid (   $input,
  $expected 
)

Definition at line 1165 of file BackendUtilityTest.php.

◆ splitTableUidDataProvider()

static TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::splitTableUidDataProvider ( )
static

Definition at line 1141 of file BackendUtilityTest.php.

◆ unfitResolveFileReferencesTableConfig()

static TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::unfitResolveFileReferencesTableConfig ( )
static

Definition at line 1190 of file BackendUtilityTest.php.

◆ workspaceOLDoesNotChangeValuesForNoBeUserAvailable()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::workspaceOLDoesNotChangeValuesForNoBeUserAvailable ( )

Definition at line 1227 of file BackendUtilityTest.php.

References $GLOBALS.

◆ wsMapIdReturnsLiveIdIfNoBeUserIsAvailable()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::wsMapIdReturnsLiveIdIfNoBeUserIsAvailable ( )

Definition at line 1270 of file BackendUtilityTest.php.

References $GLOBALS, and TYPO3\CMS\Webhooks\Message\$uid.

Member Data Documentation

◆ $resetSingletonInstances

bool TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::$resetSingletonInstances = true
protected

Definition at line 38 of file BackendUtilityTest.php.