TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
TcaRecordTitleTest Class Reference
Inheritance diagram for TcaRecordTitleTest:
UnitTestCase BaseTestCase

Public Member Functions

 setUp ()
 
 addDataThrowsExceptionWithMissingLabel ()
 
 addDataReturnsRecordTitleForLabelUserFunction ()
 
 addDataReturnsRecordTitleForFormattedLabelUserFunction ()
 
 addDataReturnsRecordTitleForInlineChildWithForeignLabel ()
 
 addDataOverridesRecordTitleWithFormattedLabelUserFuncForInlineChildWithForeignLabel ()
 
 addDataReturnsRecordTitleForInlineChildWithSymmetricLabel ()
 
 addDataReturnsRecordTitleForInputTypeDataProvider ()
 
 addDataReturnsRecordTitleWithAlternativeLabel ()
 
 addDataReturnsRecordTitleWithMultipleAlternativeLabels ()
 
 addDataReturnsRecordTitleWithForcedAlternativeLabel ()
 
 addDataReturnsRecordTitleWithMultipleForcedAlternativeLabels ()
 
 addDataReturnsRecordTitleIgnoresEmptyAlternativeLabels ()
 
 addDataReturnsRecordTitleForRadioType ()
 
 addDataReturnsRecordTitleForGroupTypeDataProvider ()
 
 addDataReturnsRecordTitleForGroupTypeWithInternalTypeDb ()
 
 addDataReturnsRecordTitleForArrayCheckboxType ()
 
 addDataReturnsEmptyRecordTitleForFlexType ()
 
 addDataReturnsRecordTitleForSelectType ()
 
 addDataReturnsStrippedAndTrimmedValueForTextType ()
 

Protected Member Functions

 tearDown ()
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

 $subject
 
 $timeZone
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case

Definition at line 26 of file TcaRecordTitleTest.php.

Member Function Documentation

addDataOverridesRecordTitleWithFormattedLabelUserFuncForInlineChildWithForeignLabel ( )
Test:

Definition at line 156 of file TcaRecordTitleTest.php.

addDataReturnsEmptyRecordTitleForFlexType ( )
Test:

Definition at line 827 of file TcaRecordTitleTest.php.

addDataReturnsRecordTitleForArrayCheckboxType ( )
Test:

Definition at line 793 of file TcaRecordTitleTest.php.

addDataReturnsRecordTitleForFormattedLabelUserFunction ( )
Test:

Definition at line 95 of file TcaRecordTitleTest.php.

addDataReturnsRecordTitleForGroupTypeDataProvider ( )

Data provider for addDataReturnsRecordTitleForGroupType Each data set is an array with the following elements:

  • TCA field configuration (merged with base config)
  • Database value for field
  • expected title to be generated
Returns
array

Definition at line 629 of file TcaRecordTitleTest.php.

addDataReturnsRecordTitleForGroupTypeWithInternalTypeDb ( )
Test:

Definition at line 727 of file TcaRecordTitleTest.php.

addDataReturnsRecordTitleForInlineChildWithForeignLabel ( )
Test:

Definition at line 121 of file TcaRecordTitleTest.php.

addDataReturnsRecordTitleForInlineChildWithSymmetricLabel ( )
Test:

Definition at line 191 of file TcaRecordTitleTest.php.

addDataReturnsRecordTitleForInputTypeDataProvider ( )

Data provider for addDataReturnsRecordTitleForInputType Each data set is an array with the following elements:

  • TCA field ['config'] section
  • Database value for field
  • expected title to be generated
Returns
array

Definition at line 258 of file TcaRecordTitleTest.php.

addDataReturnsRecordTitleForLabelUserFunction ( )
Test:

Definition at line 70 of file TcaRecordTitleTest.php.

addDataReturnsRecordTitleForRadioType ( )
Test:

Definition at line 588 of file TcaRecordTitleTest.php.

addDataReturnsRecordTitleForSelectType ( )
Test:

Definition at line 884 of file TcaRecordTitleTest.php.

addDataReturnsRecordTitleIgnoresEmptyAlternativeLabels ( )
Test:

Definition at line 544 of file TcaRecordTitleTest.php.

addDataReturnsRecordTitleWithAlternativeLabel ( )
Test:

Definition at line 382 of file TcaRecordTitleTest.php.

addDataReturnsRecordTitleWithForcedAlternativeLabel ( )
Test:

Definition at line 462 of file TcaRecordTitleTest.php.

addDataReturnsRecordTitleWithMultipleAlternativeLabels ( )
Test:

Definition at line 419 of file TcaRecordTitleTest.php.

addDataReturnsRecordTitleWithMultipleForcedAlternativeLabels ( )
Test:

Definition at line 500 of file TcaRecordTitleTest.php.

addDataReturnsStrippedAndTrimmedValueForTextType ( )
Test:

Definition at line 921 of file TcaRecordTitleTest.php.

addDataThrowsExceptionWithMissingLabel ( )
Test:

Definition at line 53 of file TcaRecordTitleTest.php.

setUp ( )

Definition at line 38 of file TcaRecordTitleTest.php.

tearDown ( )
protected

Definition at line 45 of file TcaRecordTitleTest.php.

Member Data Documentation

$subject
protected

Definition at line 31 of file TcaRecordTitleTest.php.

$timeZone
protected

Definition at line 36 of file TcaRecordTitleTest.php.