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

Public Member Functions

 getQueryReturnsQueryObject ()
 
 getQueryReturnsAClone ()
 
 offsetExistsWorksAsExpected ()
 
 offsetGetWorksAsExpected ()
 
 offsetSetWorksAsExpected ()
 
 offsetUnsetWorksAsExpected ()
 
 countDoesNotInitializeProxy ()
 
 countCallsGetObjectCountByQueryOnPersistenceManager ()
 
 countCountsQueryResultDirectlyIfAlreadyInitialized ()
 
 countOnlyCallsGetObjectCountByQueryOnPersistenceManagerOnce ()
 
 iteratorMethodsAreCorrectlyImplemented ()
 
 usingCurrentOnTheQueryResultReturnsNull ()
 

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

 $queryResult
 
 $mockQuery
 
 $mockPersistenceManager
 
 $mockDataMapper
 
 $sampleResult = []
 
- 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 20 of file QueryResultTest.php.

Member Function Documentation

countCallsGetObjectCountByQueryOnPersistenceManager ( )
countCountsQueryResultDirectlyIfAlreadyInitialized ( )
Test:

Definition at line 144 of file QueryResultTest.php.

countDoesNotInitializeProxy ( )
countOnlyCallsGetObjectCountByQueryOnPersistenceManagerOnce ( )
Test:

Definition at line 154 of file QueryResultTest.php.

getQueryReturnsAClone ( )
Test:

Definition at line 77 of file QueryResultTest.php.

getQueryReturnsQueryObject ( )
Test:

Definition at line 69 of file QueryResultTest.php.

iteratorMethodsAreCorrectlyImplemented ( )
Test:

Definition at line 164 of file QueryResultTest.php.

offsetExistsWorksAsExpected ( )
Test:

Definition at line 85 of file QueryResultTest.php.

offsetGetWorksAsExpected ( )
Test:

Definition at line 95 of file QueryResultTest.php.

offsetSetWorksAsExpected ( )
Test:

Definition at line 105 of file QueryResultTest.php.

offsetUnsetWorksAsExpected ( )
Test:

Definition at line 114 of file QueryResultTest.php.

setUp ( )
protected

Sets up this test case

Returns
void

Definition at line 52 of file QueryResultTest.php.

References BaseTestCase\getAccessibleMock().

usingCurrentOnTheQueryResultReturnsNull ( )
Test:

Definition at line 199 of file QueryResultTest.php.

References QueryResultTest\$queryResult.

Member Data Documentation

$mockDataMapper
protected

Definition at line 40 of file QueryResultTest.php.

$mockPersistenceManager
protected

Definition at line 35 of file QueryResultTest.php.

$mockQuery
protected

Definition at line 30 of file QueryResultTest.php.

$sampleResult = []
protected

Definition at line 45 of file QueryResultTest.php.