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

Public Member Functions

 checkInlineFileTypeAccessForFieldForFieldNoFiletypesReturnsTrue ()
 
 checkInlineFileTypeAccessForFieldFiletypesSetRecordTypeNotInListReturnsFalse ()
 
 checkInlineFileTypeAccessForFieldFiletypesSetRecordTypeInListReturnsTrue ()
 
 splitDomObjectIdResolvesTablenameCorrectly ($dataStructure, $expectedTableName)
 
 splitDomObjectIdDataProviderForTableName ()
 
 splitDomObjectIdResolvesFlexformPathCorrectly ($dataStructure, $expectedFlexformPath)
 
 splitDomObjectIdDataProviderForFlexFormPath ()
 
 getInlineExpandCollapseStateArraySwitchesToFallbackIfTheBackendUserDoesNotHaveAnUCInlineViewProperty ()
 
 getInlineExpandCollapseStateArrayWillUnserializeUCInlineViewPropertyAsAnArrayWithData ()
 

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 24 of file FormInlineAjaxControllerTest.php.

Member Function Documentation

checkInlineFileTypeAccessForFieldFiletypesSetRecordTypeInListReturnsTrue ( )

Checks if the given file type may be uploaded and the given file type is in the list of allowed files

Test:

Definition at line 58 of file FormInlineAjaxControllerTest.php.

References BaseTestCase\getAccessibleMock().

checkInlineFileTypeAccessForFieldFiletypesSetRecordTypeNotInListReturnsFalse ( )

Checks if the given file type may be uploaded and the given file type is NOT in the list of allowed files

Test:

Definition at line 45 of file FormInlineAjaxControllerTest.php.

References BaseTestCase\getAccessibleMock().

checkInlineFileTypeAccessForFieldForFieldNoFiletypesReturnsTrue ( )

Checks if the given file type may be uploaded without ANY limit to file types being given

Test:

Definition at line 31 of file FormInlineAjaxControllerTest.php.

References BaseTestCase\getAccessibleMock().

getInlineExpandCollapseStateArraySwitchesToFallbackIfTheBackendUserDoesNotHaveAnUCInlineViewProperty ( )

Fallback for IRRE items without inline view attribute https://forge.typo3.org/issues/76561

Test:

Definition at line 176 of file FormInlineAjaxControllerTest.php.

References BaseTestCase\getAccessibleMock().

getInlineExpandCollapseStateArrayWillUnserializeUCInlineViewPropertyAsAnArrayWithData ( )

Unserialize uc inline view string for IRRE item https://forge.typo3.org/issues/76561

Test:

Definition at line 201 of file FormInlineAjaxControllerTest.php.

References BaseTestCase\getAccessibleMock().

splitDomObjectIdDataProviderForFlexFormPath ( )
Returns
array

Definition at line 136 of file FormInlineAjaxControllerTest.php.

splitDomObjectIdDataProviderForTableName ( )
Returns
array

Definition at line 85 of file FormInlineAjaxControllerTest.php.

splitDomObjectIdResolvesFlexformPathCorrectly (   $dataStructure,
  $expectedFlexformPath 
)

splitDomObjectIdDataProviderForFlexFormPath

Parameters
string$dataStructure
string$expectedFlexformPath
Test:

test for the flexform domobject identifier split

Definition at line 126 of file FormInlineAjaxControllerTest.php.

References BaseTestCase\getAccessibleMock().

splitDomObjectIdResolvesTablenameCorrectly (   $dataStructure,
  $expectedTableName 
)

splitDomObjectIdDataProviderForTableName

Parameters
string$dataStructure
string$expectedTableName
Test:

test for the flexform domobject identifier split

Definition at line 75 of file FormInlineAjaxControllerTest.php.

References BaseTestCase\getAccessibleMock().