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

Public Member Functions

 loadTreeDataLevelMaximumSetToZeroWorks ()
 
 loadTreeDataLevelMaximumSetToOneWorks ()
 
 getChildrenOfLevelMaximumSetToOneWorks ()
 
 getChildrenOfLevelMaximumSetToTwoWorks ()
 

Protected Member Functions

 setUp ()
 
 setupDatabaseMock (int $instanceCount=1)
 
 initializeSubjectMock (array $mockMethods)
 
- 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
 
 $treeData
 
 $database
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Testcase for

Definition at line 33 of file DatabaseTreeDataProviderTest.php.

Member Function Documentation

getChildrenOfLevelMaximumSetToOneWorks ( )
getChildrenOfLevelMaximumSetToTwoWorks ( )
loadTreeDataLevelMaximumSetToOneWorks ( )
loadTreeDataLevelMaximumSetToZeroWorks ( )
setUp ( )
protected

Set up

Returns
void

Definition at line 55 of file DatabaseTreeDataProviderTest.php.

setupDatabaseMock ( int  $instanceCount = 1)
protected

Setup prophecies for database stack

Parameters
int$instanceCountNumber of instances of ConnectionPool::class to register
Returns
|

Definition at line 66 of file DatabaseTreeDataProviderTest.php.

References GeneralUtility\addInstance().

Referenced by DatabaseTreeDataProviderTest\getChildrenOfLevelMaximumSetToOneWorks(), and DatabaseTreeDataProviderTest\getChildrenOfLevelMaximumSetToTwoWorks().

Member Data Documentation

$database
protected

Definition at line 48 of file DatabaseTreeDataProviderTest.php.

$subject
protected

Definition at line 38 of file DatabaseTreeDataProviderTest.php.

$treeData
protected

Definition at line 43 of file DatabaseTreeDataProviderTest.php.