PHP Class Doctrine\MongoDB\Tests\Query\BuilderTest

Inheritance: extends Doctrine\MongoDB\Tests\BaseTest
Afficher le fichier Open project: doctrine/mongodb

Méthodes publiques

Méthode Description
provideCurrentDateOptions ( )
provideExcludeProjections ( )
providePoint ( )
provideProxiedExprMethods ( )
provideSelectProjections ( )
provideSortOrders ( )
testAddElemMatch ( )
testAddNot ( )
testBitAndUpdateQuery ( )
testBitOrUpdateQuery ( )
testBitXorUpdateQuery ( )
testComplexUpdateQuery ( )
testCurrentDateInvalidType ( )
testCurrentDateUpdateQuery ( $type )
testDateRange ( )
testDeepClone ( )
testDistanceMultipler ( )
testDistanceMultiplerRequiresGeoNearCommand ( )
testExclude ( array $args, array $expected )
testFinalizeShouldThrowExceptionForUnsupportedQueryType ( )
testFindQuery ( )
testGeoNearWithBothArguments ( )
testGeoNearWithSingleArgument ( $point, array $near, $spherical )
testIncUpdateQuery ( )
testMapReduceOptionsRequiresMapReduceCommand ( )
testMapReduceQueryWithMultipleMethodsAndQueryArray ( )
testMapReduceQueryWithSingleMethod ( )
testMaxDistanceWithGeoNearCommand ( )
testMinDistanceWithGeoNearCommand ( )
testMultipleUpdateQuery ( )
testOutRequiresMapReduceCommand ( )
testProxiedExprMethods ( $method, array $args = [] )
testQueryIsIterable ( )
testReduceShouldThrowExceptionForUnsupportedQueryType ( )
testSelect ( array $args, array $expected )
testSelectElemMatchWithArray ( )
testSelectElemMatchWithExpr ( )
testSelectMeta ( )
testSelectSliceWithCount ( )
testSelectSliceWithSkipAndLimit ( )
testSetOnInsert ( )
testSetReadPreference ( )
testSortMetaDoesNotProjectExistingField ( )
testSortMetaDoesProjectMissingField ( )
testSortWithArrayOfFieldNameAndOrderPairs ( )
testSortWithFieldNameAndDefaultOrder ( )
testSortWithFieldNameAndOrder ( $order, $expectedOrder )
testSpherical ( )
testSphericalRequiresGeoNearCommand ( )
testThatAndAcceptsAnotherQuery ( )
testThatNorAcceptsAnotherQuery ( )
testThatOrAcceptsAnotherQuery ( )
testUnsetField ( )
testUpsertUpdateQuery ( )

Private Methods

Méthode Description
assertArrayHasKeyValue ( $expected, $array, $message = '' )
getMockCollection ( )
getMockExpr ( )
getMockGeometry ( )
getMockPoint ( $json )
getStubQueryBuilder ( )
getTestQueryBuilder ( )
provideProjections ( boolean $include ) : array Provide arguments for select() and exclude() tests.

Method Details

provideCurrentDateOptions() public static méthode

public static provideCurrentDateOptions ( )

provideExcludeProjections() public méthode

providePoint() public méthode

public providePoint ( )

provideProxiedExprMethods() public méthode

provideSelectProjections() public méthode

provideSortOrders() public méthode

public provideSortOrders ( )

testAddElemMatch() public méthode

public testAddElemMatch ( )

testAddNot() public méthode

public testAddNot ( )

testBitAndUpdateQuery() public méthode

testBitOrUpdateQuery() public méthode

testBitXorUpdateQuery() public méthode

testComplexUpdateQuery() public méthode

testCurrentDateInvalidType() public méthode

testCurrentDateUpdateQuery() public méthode

public testCurrentDateUpdateQuery ( $type )

testDateRange() public méthode

public testDateRange ( )

testDeepClone() public méthode

public testDeepClone ( )

testDistanceMultipler() public méthode

testDistanceMultiplerRequiresGeoNearCommand() public méthode

testExclude() public méthode

public testExclude ( array $args, array $expected )
$args array
$expected array

testFinalizeShouldThrowExceptionForUnsupportedQueryType() public méthode

testFindQuery() public méthode

public testFindQuery ( )

testGeoNearWithBothArguments() public méthode

testGeoNearWithSingleArgument() public méthode

public testGeoNearWithSingleArgument ( $point, array $near, $spherical )
$near array

testIncUpdateQuery() public méthode

public testIncUpdateQuery ( )

testMapReduceOptionsRequiresMapReduceCommand() public méthode

testMapReduceQueryWithMultipleMethodsAndQueryArray() public méthode

testMapReduceQueryWithSingleMethod() public méthode

testMaxDistanceWithGeoNearCommand() public méthode

testMinDistanceWithGeoNearCommand() public méthode

testMultipleUpdateQuery() public méthode

testOutRequiresMapReduceCommand() public méthode

testProxiedExprMethods() public méthode

public testProxiedExprMethods ( $method, array $args = [] )
$args array

testQueryIsIterable() public méthode

public testQueryIsIterable ( )

testReduceShouldThrowExceptionForUnsupportedQueryType() public méthode

testSelect() public méthode

public testSelect ( array $args, array $expected )
$args array
$expected array

testSelectElemMatchWithArray() public méthode

testSelectElemMatchWithExpr() public méthode

testSelectMeta() public méthode

public testSelectMeta ( )

testSelectSliceWithCount() public méthode

testSelectSliceWithSkipAndLimit() public méthode

testSetOnInsert() public méthode

public testSetOnInsert ( )

testSetReadPreference() public méthode

testSortMetaDoesNotProjectExistingField() public méthode

testSortMetaDoesProjectMissingField() public méthode

testSortWithArrayOfFieldNameAndOrderPairs() public méthode

testSortWithFieldNameAndDefaultOrder() public méthode

testSortWithFieldNameAndOrder() public méthode

public testSortWithFieldNameAndOrder ( $order, $expectedOrder )

testSpherical() public méthode

public testSpherical ( )

testSphericalRequiresGeoNearCommand() public méthode

testThatAndAcceptsAnotherQuery() public méthode

testThatNorAcceptsAnotherQuery() public méthode

testThatOrAcceptsAnotherQuery() public méthode

testUnsetField() public méthode

public testUnsetField ( )

testUpsertUpdateQuery() public méthode