PHP Class Neos\Flow\Tests\Unit\Persistence\Generic\QueryResultTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$dataMapper Neos\Flow\Persistence\Generic\DataMapper | PHPUnit_Framework_MockObject_MockObject
$persistenceManager Neos\Flow\Persistence\Generic\PersistenceManager | PHPUnit_Framework_MockObject_MockObject
$query Neos\Flow\Persistence\QueryInterface
$queryResult Neos\Flow\Persistence\Generic\QueryResult
$sampleResult Neos\Flow\Persistence\Generic\QueryResult | PHPUnit_Framework_MockObject_MockObject

Public Methods

Method Description
countCallsGetObjectCountByQueryOnPersistenceManager ( )
countCountsQueryResultDirectlyIfAlreadyInitialized ( )
countDoesNotInitializeProxy ( )
countOnlyCallsGetObjectCountByQueryOnPersistenceManagerOnce ( )
getFirstMapsAndReturnsFirstResultIfQueryIsNotInitialized ( )
getFirstReturnsFirstResultIfQueryIsInitialized ( )
getFirstReturnsNullIfResultSetIsEmptyAndQueryIsInitialized ( )
getFirstReturnsNullIfResultSetIsEmptyAndQueryIsNotInitialized ( )
getQueryReturnsAClone ( )
getQueryReturnsQueryObject ( )
initializeExecutesQueryWithArrayFetchMode ( )
iteratorMethodsAreCorrectlyImplemented ( )
offsetExistsWorksAsExpected ( )
offsetGetWorksAsExpected ( )
offsetSetWorksAsExpected ( )
offsetUnsetWorksAsExpected ( )
setUp ( ) Sets up this test case

Method Details

countCallsGetObjectCountByQueryOnPersistenceManager() public method

countCountsQueryResultDirectlyIfAlreadyInitialized() public method

countDoesNotInitializeProxy() public method

countOnlyCallsGetObjectCountByQueryOnPersistenceManagerOnce() public method

getFirstMapsAndReturnsFirstResultIfQueryIsNotInitialized() public method

getFirstReturnsFirstResultIfQueryIsInitialized() public method

getFirstReturnsNullIfResultSetIsEmptyAndQueryIsInitialized() public method

getFirstReturnsNullIfResultSetIsEmptyAndQueryIsNotInitialized() public method

getQueryReturnsAClone() public method

getQueryReturnsQueryObject() public method

initializeExecutesQueryWithArrayFetchMode() public method

iteratorMethodsAreCorrectlyImplemented() public method

offsetExistsWorksAsExpected() public method

offsetGetWorksAsExpected() public method

offsetSetWorksAsExpected() public method

offsetUnsetWorksAsExpected() public method

setUp() public method

Sets up this test case
public setUp ( )

Property Details

$dataMapper protected property

protected DataMapper,Neos\Flow\Persistence\Generic|PHPUnit_Framework_MockObject_MockObject $dataMapper
return Neos\Flow\Persistence\Generic\DataMapper | PHPUnit_Framework_MockObject_MockObject

$persistenceManager protected property

protected PersistenceManager,Neos\Flow\Persistence\Generic|PHPUnit_Framework_MockObject_MockObject $persistenceManager
return Neos\Flow\Persistence\Generic\PersistenceManager | PHPUnit_Framework_MockObject_MockObject

$query protected property

protected QueryInterface,Neos\Flow\Persistence $query
return Neos\Flow\Persistence\QueryInterface

$queryResult protected property

protected QueryResult,Neos\Flow\Persistence\Generic $queryResult
return Neos\Flow\Persistence\Generic\QueryResult

$sampleResult protected property

protected QueryResult,Neos\Flow\Persistence\Generic|PHPUnit_Framework_MockObject_MockObject $sampleResult
return Neos\Flow\Persistence\Generic\QueryResult | PHPUnit_Framework_MockObject_MockObject