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

Public Member Functions

 getDataStructureIdentifierCallsRegisteredPreProcessHook ()
 
 getDataStructureIdentifierThrowsExceptionIfPreProcessHookReturnsNoArray ()
 
 getDataStructureIdentifierUsesCasualLogicIfPreProcessHookReturnsNoIdentifier ()
 
 getDataStructureIdentifierReturnsStringFromPreProcessHook ()
 
 getDataStructureIdentifierReturnsStringFromFirstMatchingPreProcessHook ()
 
 getDataStructureIdentifierCallsRegisteredPostProcessHook ()
 
 getDataStructureIdentifierThrowsExceptionIfPostProcessHookReturnsNoArray ()
 
 getDataStructureIdentifierThrowsExceptionIfPostProcessHookReturnsEmptyArray ()
 
 getDataStructureIdentifierPostProcessHookCanEnrichIdentifier ()
 
 getDataStructureIdentifierThrowsExceptionIfDsIsNotAnArrayAndNoDsPointerField ()
 
 getDataStructureIdentifierReturnsDefaultIfDsIsSetButNoDsPointerField ()
 
 getDataStructureIdentifierThrowsExceptionsIfNoDsPointerFieldIsSetAndDefaultDoesNotExist ()
 
 getDataStructureIdentifierThrowsExceptionIfPointerFieldStringHasMoreThanTwoFields ()
 
 getDataStructureIdentifierThrowsExceptionIfPointerFieldWithStringSingleFieldDoesNotExist ()
 
 getDataStructureIdentifierThrowsExceptionIfPointerFieldSWithTwoFieldsFirstDoesNotExist ()
 
 getDataStructureIdentifierThrowsExceptionIfPointerFieldSWithTwoFieldsSecondDoesNotExist ()
 
 getDataStructureIdentifierReturnsPointerFieldValueIfDataStructureExists ()
 
 getDataStructureIdentifierReturnsDefaultIfPointerFieldValueDoesNotExist ()
 
 getDataStructureIdentifierThrowsExceptionIfPointerFieldValueDoesNotExistAndDefaultToo ()
 
 getDataStructureIdentifierReturnsValidNameForTwoFieldCombinationsDataProvider ()
 
 getDataStructureIdentifierReturnsValidNameForTwoFieldCombinations (array $row, array $ds, string $expected)
 
 getDataStructureIdentifierThrowsExceptionForTwoFieldsWithNoMatchAndNoDefault ()
 
 getDataStructureIdentifierThrowsExceptionIfParentRowLookupFails ()
 
 getDataStructureIdentifierThrowsExceptionIfParentRowsFormALoop ()
 
 getDataStructureIdentifierThrowsExceptionIfNoValidPointerFoundUntilRoot ()
 
 getDataStructureIdentifierThrowsExceptionIfNoValidPointerValueFound ()
 
 getDataStructureIdentifierThrowsExceptionIfResorvedPointerValueIsIntegerButDsFieldNameIsNotConfigured ()
 
 getDataStructureIdentifierThrowsExceptionIfDsTableFieldIsMisconfigured ()
 
 getDataStructureIdentifierReturnsValidIdentifierForPointerField ()
 
 getDataStructureIdentifierReturnsValidIdentifierForParentLookup ()
 
 getDataStructureIdentifierReturnsValidIdentifierForParentLookupAndBreaksLoop ()
 
 getDataStructureIdentifierReturnsValidIdentifierForParentLookupAndPrefersSubField ()
 
 getDataStructureIdentifierReturnsValidIdentifierForTableAndFieldPointer ()
 
 getDataStructureIdentifierReturnsValidIdentifierForTableAndFieldPointerWithParentLookup ()
 
 parseDataStructureByIdentifierThrowsExceptionWithEmptyString ()
 
 parseDataStructureByIdentifierIfIdentifierDoesNotResolveToArray ()
 
 parseDataStructureByIdentifierCallsRegisteredHook ()
 
 parseDataStructureByIdentifierThrowsExceptionIfHookReturnsNoString ()
 
 parseDataStructureByIdentifierUsesCasualLogicIfHookReturnsNoIdentifier ()
 
 parseDataStructureByIdentifierParsesDataStructureReturnedByHook ()
 
 parseDataStructureByIdentifierParsesDataStructureFromFirstMatchingHook ()
 
 parseDataStructureByIdentifierThrowsExceptionForInvalidSyntax ()
 
 parseDataStructureByIdentifierThrowsExceptionForIncompleteTcaSyntax ()
 
 parseDataStructureByIdentifierThrowsExceptionForInvalidTcaSyntaxPointer ()
 
 parseDataStructureByIdentifierResolvesTcaSyntaxPointer ()
 
 parseDataStructureByIdentifierThrowsExceptionForIncompleteRecordSyntax ()
 
 parseDataStructureByIdentifierResolvesRecordSyntaxPointer ()
 
 parseDataStructureByIdentifierThrowsExceptionIfDataStructureFileDoesNotExist ()
 
 parseDataStructureByIdentifierFetchesFromFile ()
 
 parseDataStructureByIdentifierThrowsExceptionForInvalidXmlStructure ()
 
 parseDataStructureByIdentifierThrowsExceptionIfStructureHasBothSheetAndRoot ()
 
 parseDataStructureByIdentifierCreatesDefaultSheet ()
 
 parseDataStructureByIdentifierResolvesExtReferenceForSingleSheets ()
 
 parseDataStructureByIdentifierResolvesExtReferenceForSingleSheetsWithFilePrefix ()
 
 parseDataStructureByIdentifierCallsPostProcessHook ()
 
 parseDataStructureByIdentifierThrowsExceptionIfPostProcessHookReturnsNoArray ()
 
 parseDataStructureByIdentifierPostProcessHookManipulatesDataStructure ()
 

Additional Inherited Members

- 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 inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case

Definition at line 54 of file FlexFormToolsTest.php.

Member Function Documentation

getDataStructureIdentifierCallsRegisteredPostProcessHook ( )
Test:

Definition at line 130 of file FlexFormToolsTest.php.

References $GLOBALS.

getDataStructureIdentifierCallsRegisteredPreProcessHook ( )
Test:

Definition at line 59 of file FlexFormToolsTest.php.

References $GLOBALS.

getDataStructureIdentifierPostProcessHookCanEnrichIdentifier ( )
Test:

Definition at line 190 of file FlexFormToolsTest.php.

References $GLOBALS.

getDataStructureIdentifierReturnsDefaultIfDsIsSetButNoDsPointerField ( )
Test:

Definition at line 225 of file FlexFormToolsTest.php.

getDataStructureIdentifierReturnsDefaultIfPointerFieldValueDoesNotExist ( )
Test:

Definition at line 349 of file FlexFormToolsTest.php.

getDataStructureIdentifierReturnsPointerFieldValueIfDataStructureExists ( )
Test:

Definition at line 329 of file FlexFormToolsTest.php.

getDataStructureIdentifierReturnsStringFromFirstMatchingPreProcessHook ( )
Test:

Definition at line 116 of file FlexFormToolsTest.php.

References $GLOBALS.

getDataStructureIdentifierReturnsStringFromPreProcessHook ( )
Test:

Definition at line 104 of file FlexFormToolsTest.php.

References $GLOBALS.

getDataStructureIdentifierReturnsValidIdentifierForParentLookup ( )
Test:

Definition at line 800 of file FlexFormToolsTest.php.

References GeneralUtility\addInstance().

getDataStructureIdentifierReturnsValidIdentifierForParentLookupAndBreaksLoop ( )
Test:

Definition at line 865 of file FlexFormToolsTest.php.

References GeneralUtility\addInstance().

getDataStructureIdentifierReturnsValidIdentifierForParentLookupAndPrefersSubField ( )
Test:

Definition at line 921 of file FlexFormToolsTest.php.

References GeneralUtility\addInstance().

getDataStructureIdentifierReturnsValidIdentifierForPointerField ( )
Test:

Definition at line 782 of file FlexFormToolsTest.php.

getDataStructureIdentifierReturnsValidIdentifierForTableAndFieldPointer ( )
Test:

Definition at line 981 of file FlexFormToolsTest.php.

getDataStructureIdentifierReturnsValidIdentifierForTableAndFieldPointerWithParentLookup ( )
Test:

Definition at line 1001 of file FlexFormToolsTest.php.

References GeneralUtility\addInstance().

getDataStructureIdentifierReturnsValidNameForTwoFieldCombinations ( array  $row,
array  $ds,
string  $expected 
)
Test:
getDataStructureIdentifierReturnsValidNameForTwoFieldCombinationsDataProvider
Parameters
array$row
array$ds
$expected

Definition at line 511 of file FlexFormToolsTest.php.

getDataStructureIdentifierReturnsValidNameForTwoFieldCombinationsDataProvider ( )

Data provider for getDataStructureIdentifierReturnsValidNameForTwoFieldCombinations

Definition at line 390 of file FlexFormToolsTest.php.

getDataStructureIdentifierThrowsExceptionForTwoFieldsWithNoMatchAndNoDefault ( )
Test:

Definition at line 525 of file FlexFormToolsTest.php.

getDataStructureIdentifierThrowsExceptionIfDsIsNotAnArrayAndNoDsPointerField ( )
Test:

Definition at line 209 of file FlexFormToolsTest.php.

getDataStructureIdentifierThrowsExceptionIfDsTableFieldIsMisconfigured ( )
Test:

Definition at line 763 of file FlexFormToolsTest.php.

getDataStructureIdentifierThrowsExceptionIfNoValidPointerFoundUntilRoot ( )
Test:

Definition at line 661 of file FlexFormToolsTest.php.

References GeneralUtility\addInstance().

getDataStructureIdentifierThrowsExceptionIfNoValidPointerValueFound ( )
Test:

Definition at line 727 of file FlexFormToolsTest.php.

getDataStructureIdentifierThrowsExceptionIfParentRowLookupFails ( )
Test:

Definition at line 547 of file FlexFormToolsTest.php.

References GeneralUtility\addInstance().

getDataStructureIdentifierThrowsExceptionIfParentRowsFormALoop ( )
Test:

Definition at line 595 of file FlexFormToolsTest.php.

References GeneralUtility\addInstance().

getDataStructureIdentifierThrowsExceptionIfPointerFieldStringHasMoreThanTwoFields ( )
Test:

Definition at line 256 of file FlexFormToolsTest.php.

getDataStructureIdentifierThrowsExceptionIfPointerFieldSWithTwoFieldsFirstDoesNotExist ( )
Test:

Definition at line 291 of file FlexFormToolsTest.php.

getDataStructureIdentifierThrowsExceptionIfPointerFieldSWithTwoFieldsSecondDoesNotExist ( )
Test:

Definition at line 310 of file FlexFormToolsTest.php.

getDataStructureIdentifierThrowsExceptionIfPointerFieldValueDoesNotExistAndDefaultToo ( )
Test:

Definition at line 369 of file FlexFormToolsTest.php.

getDataStructureIdentifierThrowsExceptionIfPointerFieldWithStringSingleFieldDoesNotExist ( )
Test:

Definition at line 272 of file FlexFormToolsTest.php.

getDataStructureIdentifierThrowsExceptionIfPostProcessHookReturnsEmptyArray ( )
Test:

Definition at line 170 of file FlexFormToolsTest.php.

References $GLOBALS.

getDataStructureIdentifierThrowsExceptionIfPostProcessHookReturnsNoArray ( )
Test:

Definition at line 150 of file FlexFormToolsTest.php.

References $GLOBALS.

getDataStructureIdentifierThrowsExceptionIfPreProcessHookReturnsNoArray ( )
Test:

Definition at line 72 of file FlexFormToolsTest.php.

References $GLOBALS.

getDataStructureIdentifierThrowsExceptionIfResorvedPointerValueIsIntegerButDsFieldNameIsNotConfigured ( )
Test:

Definition at line 745 of file FlexFormToolsTest.php.

getDataStructureIdentifierThrowsExceptionsIfNoDsPointerFieldIsSetAndDefaultDoesNotExist ( )
Test:

Definition at line 241 of file FlexFormToolsTest.php.

getDataStructureIdentifierUsesCasualLogicIfPreProcessHookReturnsNoIdentifier ( )
Test:

Definition at line 85 of file FlexFormToolsTest.php.

References $GLOBALS.

parseDataStructureByIdentifierCallsPostProcessHook ( )
Test:

Definition at line 1473 of file FlexFormToolsTest.php.

References $GLOBALS.

parseDataStructureByIdentifierCallsRegisteredHook ( )
Test:

Definition at line 1082 of file FlexFormToolsTest.php.

References $GLOBALS.

parseDataStructureByIdentifierCreatesDefaultSheet ( )
Test:

Definition at line 1342 of file FlexFormToolsTest.php.

References $GLOBALS.

parseDataStructureByIdentifierFetchesFromFile ( )
Test:

Definition at line 1274 of file FlexFormToolsTest.php.

References $GLOBALS.

parseDataStructureByIdentifierIfIdentifierDoesNotResolveToArray ( )
Test:

Definition at line 1072 of file FlexFormToolsTest.php.

parseDataStructureByIdentifierParsesDataStructureFromFirstMatchingHook ( )
Test:

Definition at line 1143 of file FlexFormToolsTest.php.

References $GLOBALS.

parseDataStructureByIdentifierParsesDataStructureReturnedByHook ( )
Test:

Definition at line 1128 of file FlexFormToolsTest.php.

References $GLOBALS.

parseDataStructureByIdentifierPostProcessHookManipulatesDataStructure ( )
Test:

Definition at line 1511 of file FlexFormToolsTest.php.

References $GLOBALS.

parseDataStructureByIdentifierResolvesExtReferenceForSingleSheets ( )
Test:

Definition at line 1393 of file FlexFormToolsTest.php.

References $GLOBALS.

parseDataStructureByIdentifierResolvesExtReferenceForSingleSheetsWithFilePrefix ( )
Test:

Definition at line 1433 of file FlexFormToolsTest.php.

References $GLOBALS.

parseDataStructureByIdentifierResolvesRecordSyntaxPointer ( )
Test:

Definition at line 1220 of file FlexFormToolsTest.php.

References GeneralUtility\addInstance().

parseDataStructureByIdentifierResolvesTcaSyntaxPointer ( )
Test:

Definition at line 1192 of file FlexFormToolsTest.php.

References $GLOBALS.

parseDataStructureByIdentifierThrowsExceptionForIncompleteRecordSyntax ( )
Test:

Definition at line 1209 of file FlexFormToolsTest.php.

parseDataStructureByIdentifierThrowsExceptionForIncompleteTcaSyntax ( )
Test:

Definition at line 1170 of file FlexFormToolsTest.php.

parseDataStructureByIdentifierThrowsExceptionForInvalidSyntax ( )
Test:

Definition at line 1160 of file FlexFormToolsTest.php.

parseDataStructureByIdentifierThrowsExceptionForInvalidTcaSyntaxPointer ( )
Test:

Definition at line 1181 of file FlexFormToolsTest.php.

parseDataStructureByIdentifierThrowsExceptionForInvalidXmlStructure ( )
Test:

Definition at line 1307 of file FlexFormToolsTest.php.

References $GLOBALS.

parseDataStructureByIdentifierThrowsExceptionIfDataStructureFileDoesNotExist ( )
Test:

Definition at line 1261 of file FlexFormToolsTest.php.

References $GLOBALS.

parseDataStructureByIdentifierThrowsExceptionIfHookReturnsNoString ( )
Test:

Definition at line 1095 of file FlexFormToolsTest.php.

References $GLOBALS.

parseDataStructureByIdentifierThrowsExceptionIfPostProcessHookReturnsNoArray ( )
Test:

Definition at line 1492 of file FlexFormToolsTest.php.

References $GLOBALS.

parseDataStructureByIdentifierThrowsExceptionIfStructureHasBothSheetAndRoot ( )
Test:

Definition at line 1325 of file FlexFormToolsTest.php.

References $GLOBALS.

parseDataStructureByIdentifierThrowsExceptionWithEmptyString ( )
Test:

Definition at line 1062 of file FlexFormToolsTest.php.

parseDataStructureByIdentifierUsesCasualLogicIfHookReturnsNoIdentifier ( )
Test:

Definition at line 1108 of file FlexFormToolsTest.php.

References $GLOBALS.