PHP Class Mongolid\Cursor\CacheableCursorTest

Inheritance: extends TestCas\TestCase
Show file Open project: leroy-merlin-br/mongolid

Public Methods

Method Description
tearDown ( )
testShouldGenerateUniqueCacheKey ( )
testShouldGetCursorFromCache ( )
testShouldGetCursorFromDatabaseAndCacheForLater ( )
testShouldGetCursorFromPreviousIteration ( )
testShouldGetOriginalCursorFromDatabaseAfterTheDocumentLimit ( )

Protected Methods

Method Description
getCachableCursor ( $entitySchema = null, $collection = null, $command = 'find', $params = [[]], $driverCursor = null )

Method Details

getCachableCursor() protected method

protected getCachableCursor ( $entitySchema = null, $collection = null, $command = 'find', $params = [[]], $driverCursor = null )

tearDown() public method

public tearDown ( )

testShouldGenerateUniqueCacheKey() public method

testShouldGetCursorFromCache() public method

testShouldGetCursorFromDatabaseAndCacheForLater() public method

testShouldGetCursorFromPreviousIteration() public method

testShouldGetOriginalCursorFromDatabaseAfterTheDocumentLimit() public method