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

Public Member Functions

 addDataThrowsExceptionForInlineFieldWithoutForeignTableConfig ()
 
 addDataSetsDefaults ()
 
 addDataKeepsGivenMinitems ()
 
 addDataForcesMinitemsPositive ()
 
 addDataKeepsGivenMaxitems ()
 
 addDataForcesMaxitemsPositive ()
 
 addDataThrowsExceptionIfLocalizationModeIsSetButNotToKeepOrSelect ()
 
 addDataThrowsExceptionIfLocalizationModeIsSetToSelectAndChildIsNotLocalizable ()
 
 addDataKeepsLocalizationModeSelectIfChildIsLocalizable ()
 
 addDataKeepsLocalizationModeKeep ()
 
 addDataSetsLocalizationModeToNoneIfNotSetAndChildIsNotLocalizable ()
 
 addDataSetsLocalizationModeToSelectIfNotSetAndChildIsLocalizable ()
 
 addDataMergesWithGivenAppearanceSettings ()
 
 addDataForcesLevelLinksPositionWithForeignSelector ()
 
 addDataKeepsLevelLinksPositionWithForeignSelectorAndUseCombination ()
 
 addDataKeepsShowPossibleLocalizationRecordsButForcesBooleanTrue ()
 
 addDataKeepsShowPossibleLocalizationRecordsButForcesBooleanFalse ()
 
 addDataKeepshowRemovedLocalizationRecordsButForcesBooleanTrue ()
 
 addDataKeepsShowRemovedLocalizationRecordsButForcesBooleanFalse ()
 
 addDataThrowsExceptionIfForeignSelectorAndForeignUniquePointToDifferentFields ()
 
 addDataThrowsExceptionIfForeignSelectorPointsToANotExistingField ()
 
 addDataThrowsExceptionIfForeignUniquePointsToANotExistingField ()
 
 addDataThrowsExceptionIfForeignUniqueTargetIsNotTypeSelectOrGroup ()
 
 addDataThrowsExceptionForForeignSelectorGroupWithoutInternalTypeDb ()
 
 addDataThrowsExceptionIfForeignUniqueSelectDoesNotDefineForeignTable ()
 
 addDataThrowsExceptionIfForeignUniqueGroupDoesNotDefineForeignTable ()
 
 addDataAddsSelectorOrUniqueConfigurationForForeignUnique ()
 
 addDataMergesForeignSelectorFieldTcaOverride ()
 

Protected Member Functions

 setUp ()
 
- 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
 
 $defaultConfig
 
- 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 23 of file TcaInlineConfigurationTest.php.

Member Function Documentation

addDataAddsSelectorOrUniqueConfigurationForForeignUnique ( )
addDataForcesLevelLinksPositionWithForeignSelector ( )
addDataForcesMaxitemsPositive ( )
addDataForcesMinitemsPositive ( )
addDataKeepsGivenMaxitems ( )
addDataKeepsGivenMinitems ( )
addDataKeepshowRemovedLocalizationRecordsButForcesBooleanTrue ( )
addDataKeepsLevelLinksPositionWithForeignSelectorAndUseCombination ( )
addDataKeepsLocalizationModeKeep ( )
addDataKeepsLocalizationModeSelectIfChildIsLocalizable ( )
addDataKeepsShowPossibleLocalizationRecordsButForcesBooleanFalse ( )
addDataKeepsShowPossibleLocalizationRecordsButForcesBooleanTrue ( )
addDataKeepsShowRemovedLocalizationRecordsButForcesBooleanFalse ( )
addDataMergesForeignSelectorFieldTcaOverride ( )
addDataMergesWithGivenAppearanceSettings ( )
addDataSetsDefaults ( )
addDataSetsLocalizationModeToNoneIfNotSetAndChildIsNotLocalizable ( )
addDataSetsLocalizationModeToSelectIfNotSetAndChildIsLocalizable ( )
addDataThrowsExceptionForForeignSelectorGroupWithoutInternalTypeDb ( )
Test:

Definition at line 672 of file TcaInlineConfigurationTest.php.

References $GLOBALS.

addDataThrowsExceptionForInlineFieldWithoutForeignTableConfig ( )
Test:

Definition at line 65 of file TcaInlineConfigurationTest.php.

addDataThrowsExceptionIfForeignSelectorAndForeignUniquePointToDifferentFields ( )
Test:

Definition at line 576 of file TcaInlineConfigurationTest.php.

addDataThrowsExceptionIfForeignSelectorPointsToANotExistingField ( )
Test:

Definition at line 600 of file TcaInlineConfigurationTest.php.

addDataThrowsExceptionIfForeignUniqueGroupDoesNotDefineForeignTable ( )
Test:

Definition at line 725 of file TcaInlineConfigurationTest.php.

References $GLOBALS.

addDataThrowsExceptionIfForeignUniquePointsToANotExistingField ( )
Test:

Definition at line 623 of file TcaInlineConfigurationTest.php.

addDataThrowsExceptionIfForeignUniqueSelectDoesNotDefineForeignTable ( )
Test:

Definition at line 699 of file TcaInlineConfigurationTest.php.

References $GLOBALS.

addDataThrowsExceptionIfForeignUniqueTargetIsNotTypeSelectOrGroup ( )
Test:

Definition at line 646 of file TcaInlineConfigurationTest.php.

References $GLOBALS.

addDataThrowsExceptionIfLocalizationModeIsSetButNotToKeepOrSelect ( )
Test:

Definition at line 200 of file TcaInlineConfigurationTest.php.

addDataThrowsExceptionIfLocalizationModeIsSetToSelectAndChildIsNotLocalizable ( )
Test:

Definition at line 226 of file TcaInlineConfigurationTest.php.

setUp ( )
protected

Definition at line 30 of file TcaInlineConfigurationTest.php.

Member Data Documentation

$defaultConfig
protected
Initial value:
= [
'type' => 'inline'

Definition at line 38 of file TcaInlineConfigurationTest.php.

Referenced by TcaInlineConfigurationTest\addDataAddsSelectorOrUniqueConfigurationForForeignUnique(), TcaInlineConfigurationTest\addDataForcesLevelLinksPositionWithForeignSelector(), TcaInlineConfigurationTest\addDataForcesMaxitemsPositive(), TcaInlineConfigurationTest\addDataForcesMinitemsPositive(), TcaInlineConfigurationTest\addDataKeepsGivenMaxitems(), TcaInlineConfigurationTest\addDataKeepsGivenMinitems(), TcaInlineConfigurationTest\addDataKeepshowRemovedLocalizationRecordsButForcesBooleanTrue(), TcaInlineConfigurationTest\addDataKeepsLevelLinksPositionWithForeignSelectorAndUseCombination(), TcaInlineConfigurationTest\addDataKeepsLocalizationModeKeep(), TcaInlineConfigurationTest\addDataKeepsLocalizationModeSelectIfChildIsLocalizable(), TcaInlineConfigurationTest\addDataKeepsShowPossibleLocalizationRecordsButForcesBooleanFalse(), TcaInlineConfigurationTest\addDataKeepsShowPossibleLocalizationRecordsButForcesBooleanTrue(), TcaInlineConfigurationTest\addDataKeepsShowRemovedLocalizationRecordsButForcesBooleanFalse(), TcaInlineConfigurationTest\addDataMergesForeignSelectorFieldTcaOverride(), TcaInlineConfigurationTest\addDataMergesWithGivenAppearanceSettings(), TcaInlineConfigurationTest\addDataSetsDefaults(), TcaInlineConfigurationTest\addDataSetsLocalizationModeToNoneIfNotSetAndChildIsNotLocalizable(), and TcaInlineConfigurationTest\addDataSetsLocalizationModeToSelectIfNotSetAndChildIsLocalizable().

$subject
protected

Definition at line 28 of file TcaInlineConfigurationTest.php.