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

Public Member Functions

 addDataKeepExistingItems ()
 
 addDataThrowsExceptionIfAnItemIsNotAnArray ()
 
 addDataThrowsExceptionWithUnknownSpecialValue ()
 
 addDataAddsExcludeFieldsWithSpecialExcludeDataProvider ()
 
 addDataThrowsExceptionForInvalidFileFolder ()
 
 addDataReplacesMarkersInForeignTableClauseDataProvider ()
 
 addDataThrowsExceptionIfForeignTableIsNotDefinedInTca ()
 
 processSelectFieldValueKeepsValuesFromStaticItems ()
 
 processSelectFieldValueReturnsEmptyValueForSingleSelect ()
 
 processSelectFieldValueTrimsEmptyValueForMultiValueSelect ()
 
 processSelectFieldValueDoesNotCallRelationManagerForStaticOnlyItems ()
 
 processSelectFieldValueAddsInvalidValuesToItemsForSingleSelects ()
 
 processSelectFieldValueReturnsDuplicateValuesForMultipleSelect ()
 
 processSelectFieldValueReturnsUniqueValuesForMultipleSelect ()
 
 processSelectFieldSetsCorrectValuesForMmRelationsDataProvider ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 mockDatabaseConnection ($tableName= 'fTable')
 
- 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
 
 $singletonInstances = []
 
- 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 41 of file TcaSelectItemsTest.php.

Member Function Documentation

addDataAddsExcludeFieldsWithSpecialExcludeDataProvider ( )

Data provider

Definition at line 456 of file TcaSelectItemsTest.php.

addDataKeepExistingItems ( )
Test:

Definition at line 152 of file TcaSelectItemsTest.php.

References $GLOBALS.

addDataReplacesMarkersInForeignTableClauseDataProvider ( )

Data provider

Definition at line 1398 of file TcaSelectItemsTest.php.

addDataThrowsExceptionForInvalidFileFolder ( )
Test:

Definition at line 1254 of file TcaSelectItemsTest.php.

addDataThrowsExceptionIfAnItemIsNotAnArray ( )
Test:

Definition at line 193 of file TcaSelectItemsTest.php.

addDataThrowsExceptionIfForeignTableIsNotDefinedInTca ( )
Test:

Definition at line 1763 of file TcaSelectItemsTest.php.

addDataThrowsExceptionWithUnknownSpecialValue ( )
Test:

Definition at line 306 of file TcaSelectItemsTest.php.

mockDatabaseConnection (   $tableName = 'fTable')
protected

Prepare a mock database setup for a Doctrine connection and return an array of all prophets to set expectations upon.

Parameters
string$tableName
Returns
array

Definition at line 77 of file TcaSelectItemsTest.php.

References GeneralUtility\makeInstance().

processSelectFieldSetsCorrectValuesForMmRelationsDataProvider ( )

Data Provider

Returns
array

Definition at line 3323 of file TcaSelectItemsTest.php.

processSelectFieldValueAddsInvalidValuesToItemsForSingleSelects ( )
Test:

Definition at line 3183 of file TcaSelectItemsTest.php.

References $GLOBALS, and GeneralUtility\addInstance().

processSelectFieldValueDoesNotCallRelationManagerForStaticOnlyItems ( )
Test:

Definition at line 3142 of file TcaSelectItemsTest.php.

References $GLOBALS, and GeneralUtility\addInstance().

processSelectFieldValueKeepsValuesFromStaticItems ( )
Test:

Definition at line 3027 of file TcaSelectItemsTest.php.

References $GLOBALS.

processSelectFieldValueReturnsDuplicateValuesForMultipleSelect ( )
Test:

Definition at line 3230 of file TcaSelectItemsTest.php.

References $GLOBALS.

processSelectFieldValueReturnsEmptyValueForSingleSelect ( )
Test:

Definition at line 3067 of file TcaSelectItemsTest.php.

References $GLOBALS.

processSelectFieldValueReturnsUniqueValuesForMultipleSelect ( )
Test:

Definition at line 3276 of file TcaSelectItemsTest.php.

References $GLOBALS.

processSelectFieldValueTrimsEmptyValueForMultiValueSelect ( )
Test:

Definition at line 3101 of file TcaSelectItemsTest.php.

References $GLOBALS.

setUp ( )
protected

Definition at line 53 of file TcaSelectItemsTest.php.

References GeneralUtility\getSingletonInstances().

tearDown ( )
protected

Member Data Documentation

$singletonInstances = []
protected

Definition at line 51 of file TcaSelectItemsTest.php.

$subject
protected

Definition at line 46 of file TcaSelectItemsTest.php.