TYPO3  7.6
Public Member Functions | List of all members
BackendUtilityTest Class Reference
Inheritance diagram for BackendUtilityTest:

Public Member Functions

 calcAgeDataProvider ()
 
 calcAgeReturnsExpectedValues ($seconds, $expectedLabel)
 
 getProcessedValueForZeroStringIsZero ()
 
 getProcessedValueForGroup ()
 
 getProcessedValueForGroupWithOneAllowedTable ()
 
 getProcessedValueForGroupWithMultipleAllowedTables ()
 
 getProcessedValueForSelectWithMMRelation ()
 
 inputTypeDateDisplayOptions ()
 
 getCommonSelectFieldsReturnsCorrectFieldsDataProvider ()
 
 getCommonSelectFieldsReturnsCorrectFields ($table, $prefix= '', array $presetFields, array $tca, $expectedFields= '')
 
 getLabelFromItemlistReturnsCorrectFieldsDataProvider ()
 
 getLabelFromItemlistReturnsCorrectFields ($table, $col= '', $key= '', array $tca, $expectedLabel= '')
 
 getLabelFromItemListMergedReturnsCorrectFieldsDataProvider ()
 
 getLabelFromItemListMergedReturnsCorrectFields ($pageId, $table, $column= '', $key= '', array $tca, $expectedLabel= '')
 
 getFuncCheckReturnsInputTagWithValueAttribute ()
 
 getLabelsFromItemsListDataProvider ()
 
 getLabelsFromItemsListReturnsCorrectValue ($table, $col, $keyList, $tca, array $pageTsConfig, $expectedLabel)
 
 getProcessedValueReturnsLabelsForExistingValuesSolely ()
 
 getProcessedValueReturnsPlainValueIfItemIsNotFound ()
 
 viewOnClickReturnsOnClickCodeWithAlternativeUrl ()
 
 getModTSconfigIgnoresValuesFromUserTsConfigIfNoSet ()
 
 replaceL10nModeFieldsReplacesFieldsDataProvider ()
 
 getSpecConfPartsSplitsDefaultExtras ()
 

Detailed Description

Test case

Definition at line 35 of file BackendUtilityTest.php.

Member Function Documentation

calcAgeDataProvider ( )

Data provider for calcAge function

Returns
array

Definition at line 45 of file BackendUtilityTest.php.

calcAgeReturnsExpectedValues (   $seconds,
  $expectedLabel 
)
Test:
calcAgeDataProvider
Parameters
int$seconds
string$expectedLabel

Definition at line 126 of file BackendUtilityTest.php.

References BackendUtility\calcAge().

getCommonSelectFieldsReturnsCorrectFields (   $table,
  $prefix = '',
array  $presetFields,
array  $tca,
  $expectedFields = '' 
)
Test:
getCommonSelectFieldsReturnsCorrectFieldsDataProvider
Parameters
string$table
string$prefix
array$presetFields
array$tca
string$expectedFields

Definition at line 509 of file BackendUtilityTest.php.

References $GLOBALS, $tca, and BackendUtility\getCommonSelectFields().

getCommonSelectFieldsReturnsCorrectFieldsDataProvider ( )

Tests concerning getCommonSelectFields Data provider for getCommonSelectFieldsReturnsCorrectFields

Returns
array The test data with $table, $prefix, $presetFields, $tca, $expectedFields

Definition at line 404 of file BackendUtilityTest.php.

getFuncCheckReturnsInputTagWithValueAttribute ( )

Tests concerning getFuncCheck

Test:

Definition at line 686 of file BackendUtilityTest.php.

References BackendUtility\getFuncCheck().

getLabelFromItemListMergedReturnsCorrectFields (   $pageId,
  $table,
  $column = '',
  $key = '',
array  $tca,
  $expectedLabel = '' 
)
Test:
getLabelFromItemListMergedReturnsCorrectFieldsDataProvider
Parameters
int$pageId
string$table
string$column
string$key
array$tca
string$expectedLabel

Definition at line 672 of file BackendUtilityTest.php.

References $GLOBALS, $tca, and BackendUtility\getLabelFromItemListMerged().

getLabelFromItemListMergedReturnsCorrectFieldsDataProvider ( )

Tests concerning getLabelFromItemListMerged Data provider for getLabelFromItemListMerged

Returns
array The test data with $pageId, $table, $column, $key, $expectedLabel

Definition at line 615 of file BackendUtilityTest.php.

getLabelFromItemlistReturnsCorrectFields (   $table,
  $col = '',
  $key = '',
array  $tca,
  $expectedLabel = '' 
)
Test:
getLabelFromItemlistReturnsCorrectFieldsDataProvider
Parameters
string$table
string$col
string$key
array$tca
string$expectedLabel

Definition at line 599 of file BackendUtilityTest.php.

References $GLOBALS, $tca, and BackendUtility\getLabelFromItemlist().

getLabelFromItemlistReturnsCorrectFieldsDataProvider ( )

Tests concerning getLabelFromItemlist Data provider for getLabelFromItemlistReturnsCorrectFields

Returns
array The test data with $table, $col, $key, $expectedLabel

Definition at line 525 of file BackendUtilityTest.php.

getLabelsFromItemsListDataProvider ( )
Returns
array

Definition at line 698 of file BackendUtilityTest.php.

getLabelsFromItemsListReturnsCorrectValue (   $table,
  $col,
  $keyList,
  $tca,
array  $pageTsConfig,
  $expectedLabel 
)
Test:
getLabelsFromItemsListDataProvider
Parameters
string$table
string$col
string$keyList
array$tca
array$pageTsConfig
string$expectedLabel

Definition at line 756 of file BackendUtilityTest.php.

References $GLOBALS, $tca, and BackendUtility\getLabelsFromItemsList().

getModTSconfigIgnoresValuesFromUserTsConfigIfNoSet ( )
Test:

Definition at line 856 of file BackendUtilityTest.php.

References $GLOBALS, and BackendUtility\getModTSconfig().

getProcessedValueForGroup ( )
Test:

Definition at line 157 of file BackendUtilityTest.php.

References $GLOBALS.

getProcessedValueForGroupWithMultipleAllowedTables ( )
Test:

Definition at line 202 of file BackendUtilityTest.php.

References $GLOBALS.

getProcessedValueForGroupWithOneAllowedTable ( )
Test:

Definition at line 176 of file BackendUtilityTest.php.

References $GLOBALS.

getProcessedValueForSelectWithMMRelation ( )
Test:

Definition at line 225 of file BackendUtilityTest.php.

References $GLOBALS.

getProcessedValueForZeroStringIsZero ( )
Test:
See Also
http://forge.typo3.org/issues/20994

Definition at line 138 of file BackendUtilityTest.php.

References $GLOBALS.

getProcessedValueReturnsLabelsForExistingValuesSolely ( )
Test:

Definition at line 770 of file BackendUtilityTest.php.

References $GLOBALS, and $tca.

getProcessedValueReturnsPlainValueIfItemIsNotFound ( )
Test:

Definition at line 803 of file BackendUtilityTest.php.

References $GLOBALS, and $tca.

getSpecConfPartsSplitsDefaultExtras ( )
Test:

Definition at line 1040 of file BackendUtilityTest.php.

References BackendUtility\getSpecConfParts().

inputTypeDateDisplayOptions ( )
Returns
array

Definition at line 340 of file BackendUtilityTest.php.

replaceL10nModeFieldsReplacesFieldsDataProvider ( )

Data provider for replaceL10nModeFieldsReplacesFields

Returns
array

Definition at line 883 of file BackendUtilityTest.php.

viewOnClickReturnsOnClickCodeWithAlternativeUrl ( )

Tests concerning viewOnClick

Test:

Definition at line 839 of file BackendUtilityTest.php.

References $GLOBALS, GeneralUtility\quoteJSvalue(), and BackendUtility\viewOnClick().