TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 calcAgeDataProvider ()
 
 calcAgeReturnsExpectedValues ($seconds, $expectedLabel)
 
 getProcessedValueForZeroStringIsZero ()
 
 getProcessedValueForGroup ()
 
 getCommonSelectFieldsReturnsCorrectFieldsDataProvider ()
 
 getCommonSelectFieldsReturnsCorrectFields ($table, $prefix='', array $presetFields, array $tca, $expectedFields='')
 
 getLabelFromItemlistReturnsCorrectFieldsDataProvider ()
 
 getLabelFromItemlistReturnsCorrectFields ($table, $col='', $key='', array $tca, $expectedLabel='')
 
 getLabelFromItemListMergedReturnsCorrectFieldsDataProvider ()
 
 getFuncCheckReturnsInputTagWithValueAttribute ()
 
 getLabelsFromItemsListReturnsValueIfItemIsFound ()
 
 getProcessedValueReturnsLabelsForExistingValuesSolely ()
 
 getProcessedValueReturnsPlainValueIfItemIsNotFound ()
 
 getExcludeFieldsDataProvider ()
 
 viewOnClickReturnsOnClickCodeWithAlternativeUrl ()
 
 replaceMarkersInWhereClauseDataProvider ()
 
 replaceMarkersInWhereClauseReturnsValidWhereClause ($whereClause, $tsConfig, $expected)
 
 replaceMarkersInWhereClauseCleansIdList ()
 
 replaceL10nModeFieldsReplacesFieldsDataProvider ()
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Detailed Description

Member Function Documentation

◆ calcAgeDataProvider()

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

Data provider for calcAge function

Returns
array

Definition at line 34 of file BackendUtilityTest.php.

◆ calcAgeReturnsExpectedValues()

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

Definition at line 111 of file BackendUtilityTest.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\calcAge().

◆ getCommonSelectFieldsReturnsCorrectFields()

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

Definition at line 466 of file BackendUtilityTest.php.

References $GLOBALS, $tca, and TYPO3\CMS\Backend\Utility\BackendUtility\getCommonSelectFields().

◆ getCommonSelectFieldsReturnsCorrectFieldsDataProvider()

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

Tests concerning getCommonSelectFields Data provider for getCommonSelectFieldsReturnsCorrectFields

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

Definition at line 368 of file BackendUtilityTest.php.

◆ getExcludeFieldsDataProvider()

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

Tests concerning getExcludeFields

Returns
array

Definition at line 766 of file BackendUtilityTest.php.

References $GLOBALS, $tca, and TYPO3\CMS\Core\Tests\BaseTestCase\getUniqueId().

◆ getFuncCheckReturnsInputTagWithValueAttribute()

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

Tests concerning getFuncCheck

Test:

Definition at line 638 of file BackendUtilityTest.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\getFuncCheck().

◆ getLabelFromItemListMergedReturnsCorrectFieldsDataProvider()

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

Tests concerning getLabelFromItemListMerged Data provider for getLabelFromItemListMerged

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

Definition at line 563 of file BackendUtilityTest.php.

References $GLOBALS, $tca, and TYPO3\CMS\Core\Tests\BaseTestCase\getUniqueId().

◆ getLabelFromItemlistReturnsCorrectFields()

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

Definition at line 548 of file BackendUtilityTest.php.

References $GLOBALS, $tca, and TYPO3\CMS\Backend\Utility\BackendUtility\getLabelFromItemlist().

◆ getLabelFromItemlistReturnsCorrectFieldsDataProvider()

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

Tests concerning getLabelFromItemlist Data provider for getLabelFromItemlistReturnsCorrectFields

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

Definition at line 481 of file BackendUtilityTest.php.

◆ getLabelsFromItemsListReturnsValueIfItemIsFound()

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

Tests concerning getLabelsFromItemsList

Test:

Definition at line 649 of file BackendUtilityTest.php.

References $GLOBALS, $tca, and TYPO3\CMS\Backend\Utility\BackendUtility\getLabelsFromItemsList().

◆ getProcessedValueForGroup()

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

◆ getProcessedValueForZeroStringIsZero()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::getProcessedValueForZeroStringIsZero ( )
Test:
See also
http://forge.typo3.org/issues/20994

Definition at line 122 of file BackendUtilityTest.php.

References $GLOBALS.

◆ getProcessedValueReturnsLabelsForExistingValuesSolely()

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

Definition at line 681 of file BackendUtilityTest.php.

References $GLOBALS, and $tca.

◆ getProcessedValueReturnsPlainValueIfItemIsNotFound()

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

Definition at line 722 of file BackendUtilityTest.php.

References $GLOBALS, and $tca.

◆ replaceL10nModeFieldsReplacesFieldsDataProvider()

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

Data provider for replaceL10nModeFieldsReplacesFields

Returns
array

Definition at line 1317 of file BackendUtilityTest.php.

References $GLOBALS, $tca, and TYPO3\CMS\Core\Tests\BaseTestCase\getAccessibleMock().

◆ replaceMarkersInWhereClauseCleansIdList()

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

◆ replaceMarkersInWhereClauseDataProvider()

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

Tests concerning replaceMarkersInWhereClause

Returns
array

Definition at line 1072 of file BackendUtilityTest.php.

◆ replaceMarkersInWhereClauseReturnsValidWhereClause()

TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtilityTest::replaceMarkersInWhereClauseReturnsValidWhereClause (   $whereClause,
  $tsConfig,
  $expected 
)
Test:
replaceMarkersInWhereClauseDataProvider

Definition at line 1238 of file BackendUtilityTest.php.

References $GLOBALS, and TYPO3\CMS\Backend\Utility\BackendUtility\replaceMarkersInWhereClause().

◆ viewOnClickReturnsOnClickCodeWithAlternativeUrl()

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

Tests concerning viewOnClick

Test:

Definition at line 1052 of file BackendUtilityTest.php.

References $GLOBALS, and TYPO3\CMS\Backend\Utility\BackendUtility\viewOnClick().