‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest:

Public Member Functions

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

Protected Member Functions

 setUp ()
 

Protected Attributes

QueryResult $queryResult
 
QueryInterface $mockQuery
 
PersistenceManagerInterface $mockPersistenceManager
 
DataMapper $mockDataMapper
 
array $sampleResult = []
 

Detailed Description

Definition at line 27 of file QueryResultTest.php.

Member Function Documentation

◆ countCallsGetObjectCountByQueryIfOffsetChanges()

TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::countCallsGetObjectCountByQueryIfOffsetChanges ( )

Definition at line 153 of file QueryResultTest.php.

◆ countCallsGetObjectCountByQueryOnPersistenceManager()

TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::countCallsGetObjectCountByQueryOnPersistenceManager ( )

◆ countCountsQueryResultDirectlyIfAlreadyInitialized()

TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::countCountsQueryResultDirectlyIfAlreadyInitialized ( )

Definition at line 135 of file QueryResultTest.php.

◆ countDoesNotInitializeProxy()

TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::countDoesNotInitializeProxy ( )

◆ countOnlyCallsGetObjectCountByQueryOnPersistenceManagerOnce()

TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::countOnlyCallsGetObjectCountByQueryOnPersistenceManagerOnce ( )

Definition at line 144 of file QueryResultTest.php.

◆ getQueryReturnsAClone()

TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::getQueryReturnsAClone ( )

Definition at line 73 of file QueryResultTest.php.

◆ getQueryReturnsQueryObject()

TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::getQueryReturnsQueryObject ( )

Definition at line 66 of file QueryResultTest.php.

◆ initializeExecutesQueryWithArrayFetchMode()

TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::initializeExecutesQueryWithArrayFetchMode ( )

◆ iteratorMethodsAreCorrectlyImplemented()

TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::iteratorMethodsAreCorrectlyImplemented ( )

Definition at line 170 of file QueryResultTest.php.

◆ offsetExistsWorksAsExpected()

TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::offsetExistsWorksAsExpected ( )

Definition at line 80 of file QueryResultTest.php.

◆ offsetGetWorksAsExpected()

TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::offsetGetWorksAsExpected ( )

Definition at line 89 of file QueryResultTest.php.

◆ offsetSetWorksAsExpected()

TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::offsetSetWorksAsExpected ( )

Definition at line 98 of file QueryResultTest.php.

◆ offsetUnsetWorksAsExpected()

TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::offsetUnsetWorksAsExpected ( )

Definition at line 106 of file QueryResultTest.php.

◆ setUp()

TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::setUp ( )
protected

Sets up this test case

Definition at line 50 of file QueryResultTest.php.

Member Data Documentation

◆ $mockDataMapper

DataMapper TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::$mockDataMapper
protected

Definition at line 43 of file QueryResultTest.php.

◆ $mockPersistenceManager

PersistenceManagerInterface TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::$mockPersistenceManager
protected

Definition at line 39 of file QueryResultTest.php.

◆ $mockQuery

QueryInterface TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::$mockQuery
protected

Definition at line 35 of file QueryResultTest.php.

◆ $queryResult

◆ $sampleResult

array TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\QueryResultTest::$sampleResult = []
protected

Definition at line 45 of file QueryResultTest.php.