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

Public Member Functions

 calculateDisplayRangeDeterminesCorrectDisplayRangeStartAndEndForEvenMaximumNumberOfLinks ()
 
 calculateDisplayRangeDeterminesCorrectDisplayRangeStartAndEndForOddMaximumNumberOfLinks ()
 
 calculateDisplayRangeDeterminesCorrectDisplayRangeStartAndEndForEvenMaximumNumberOfLinksWhenOnFirstPage ()
 
 calculateDisplayRangeDeterminesCorrectDisplayRangeStartAndEndForOddMaximumNumberOfLinksWhenOnFirstPage ()
 
 calculateDisplayRangeDeterminesCorrectDisplayRangeStartAndEndForEvenMaximumNumberOfLinksWhenOnLastPage ()
 
 calculateDisplayRangeDeterminesCorrectDisplayRangeStartAndEndForOddMaximumNumberOfLinksWhenOnLastPage ()
 
 acceptQueryResultInterfaceAsObjects ()
 
 acceptArrayAsObjects ()
 
 acceptObjectStorageAsObjects ()
 
 prepareObjectsSliceReturnsCorrectPortionForObjectStorageAndFirstPage ()
 
 prepareObjectsSliceReturnsCorrectPortionForObjectStorageAndSecondPage ()
 
 prepareObjectsSliceReturnsCorrectPortionForArrayAndFirstPage ()
 
 prepareObjectsSliceReturnsCorrectPortionForArrayAndSecondPage ()
 

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

 $query
 
 $controller
 
 $querySettings
 
 $persistenceManager
 
 $backend
 
 $dataMapper
 
- 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 21 of file PaginateControllerTest.php.

Member Function Documentation

acceptArrayAsObjects ( )
Test:

Definition at line 167 of file PaginateControllerTest.php.

acceptObjectStorageAsObjects ( )
Test:

Definition at line 178 of file PaginateControllerTest.php.

acceptQueryResultInterfaceAsObjects ( )
Test:

Definition at line 154 of file PaginateControllerTest.php.

calculateDisplayRangeDeterminesCorrectDisplayRangeStartAndEndForEvenMaximumNumberOfLinks ( )
Test:

Definition at line 76 of file PaginateControllerTest.php.

calculateDisplayRangeDeterminesCorrectDisplayRangeStartAndEndForEvenMaximumNumberOfLinksWhenOnFirstPage ( )
Test:

Definition at line 102 of file PaginateControllerTest.php.

calculateDisplayRangeDeterminesCorrectDisplayRangeStartAndEndForEvenMaximumNumberOfLinksWhenOnLastPage ( )
Test:

Definition at line 128 of file PaginateControllerTest.php.

calculateDisplayRangeDeterminesCorrectDisplayRangeStartAndEndForOddMaximumNumberOfLinks ( )
Test:

Definition at line 89 of file PaginateControllerTest.php.

calculateDisplayRangeDeterminesCorrectDisplayRangeStartAndEndForOddMaximumNumberOfLinksWhenOnFirstPage ( )
Test:

Definition at line 115 of file PaginateControllerTest.php.

calculateDisplayRangeDeterminesCorrectDisplayRangeStartAndEndForOddMaximumNumberOfLinksWhenOnLastPage ( )
Test:

Definition at line 141 of file PaginateControllerTest.php.

prepareObjectsSliceReturnsCorrectPortionForArrayAndFirstPage ( )
Test:

Definition at line 226 of file PaginateControllerTest.php.

prepareObjectsSliceReturnsCorrectPortionForArrayAndSecondPage ( )
Test:

Definition at line 244 of file PaginateControllerTest.php.

prepareObjectsSliceReturnsCorrectPortionForObjectStorageAndFirstPage ( )
Test:

Definition at line 189 of file PaginateControllerTest.php.

prepareObjectsSliceReturnsCorrectPortionForObjectStorageAndSecondPage ( )
Test:

Definition at line 207 of file PaginateControllerTest.php.

setUp ( )
protected

Sets up this test case

Returns
void

Definition at line 58 of file PaginateControllerTest.php.

References BaseTestCase\getAccessibleMock().

Member Data Documentation

$backend
protected

Definition at line 46 of file PaginateControllerTest.php.

$controller
protected

Definition at line 31 of file PaginateControllerTest.php.

$dataMapper
protected

Definition at line 51 of file PaginateControllerTest.php.

$persistenceManager
protected

Definition at line 41 of file PaginateControllerTest.php.

$query
protected

Definition at line 26 of file PaginateControllerTest.php.

$querySettings
protected

Definition at line 36 of file PaginateControllerTest.php.