PHP 클래스 Mongolid\DataMapper\DataMapperTest

상속: extends TestCas\TestCase
파일 보기 프로젝트 열기: leroy-merlin-br/mongolid

보호된 프로퍼티들

프로퍼티 타입 설명
$eventService Mockery\MockInterface | Mongolid\Event\EventTriggerService

공개 메소드들

메소드 설명
eventsToBailOperations ( )
getProjections ( ) Retrieves projections that should be replaced by mapper.
getWriteConcernVariations ( )
queryValueScenarios ( )
tearDown ( )
testDatabaseOperationsShouldBailOutIfTheEventHandlerReturnsFalse ( $operation, $dbOperation, $eventName )
testPrepareProjectionShouldConvertArray ( $data, $expectation )
testPrepareProjectionShouldThrownAnException ( )
testShouldBeAbleToConstructWithSchema ( )
testShouldDelete ( $entity, $writeConcern, $shouldFireEventAfter, $expected )
testShouldGetAll ( )
testShouldGetFirstProjectingFields ( )
testShouldGetFirstTroughACacheableCursor ( )
testShouldGetFirstTroughACacheableCursorProjectingFields ( )
testShouldGetFirstWithQuery ( )
testShouldGetNullIfFirstCantFindAnything ( )
testShouldGetRawCollection ( )
testShouldGetSchemaMapper ( )
testShouldGetWithWhereQuery ( )
testShouldInsert ( $entity, $writeConcern, $shouldFireEventAfter, $expected )
testShouldInsertWithoutFiringEvents ( $entity, $writeConcern, $shouldFireEventAfter, $expected )
testShouldParseObjectToDocumentAndPutResultingIdIntoTheGivenObject ( )
testShouldPrepareQueryValue ( $value, $expectation )
testShouldSave ( $entity, $writeConcern, $shouldFireEventAfter, $expected )
testShouldUpdate ( $entity, $writeConcern, $shouldFireEventAfter, $expected )
testUpdateShouldCallInsertWhenObjectHasNoId ( $entity, $writeConcern, $shouldFireEventAfter, $expected )

보호된 메소드들

메소드 설명
expectEventNotToBeFired ( $event, $entity )
expectEventToBeFired ( $event, $entity, boolean $halt, $return = true )
getEventService ( )

메소드 상세

eventsToBailOperations() 공개 메소드

expectEventNotToBeFired() 보호된 메소드

protected expectEventNotToBeFired ( $event, $entity )

expectEventToBeFired() 보호된 메소드

protected expectEventToBeFired ( $event, $entity, boolean $halt, $return = true )
$halt boolean

getEventService() 보호된 메소드

protected getEventService ( )

getProjections() 공개 메소드

Retrieves projections that should be replaced by mapper.
public getProjections ( )

getWriteConcernVariations() 공개 메소드

queryValueScenarios() 공개 메소드

public queryValueScenarios ( )

tearDown() 공개 메소드

public tearDown ( )

testDatabaseOperationsShouldBailOutIfTheEventHandlerReturnsFalse() 공개 메소드

public testDatabaseOperationsShouldBailOutIfTheEventHandlerReturnsFalse ( $operation, $dbOperation, $eventName )

testPrepareProjectionShouldConvertArray() 공개 메소드

public testPrepareProjectionShouldConvertArray ( $data, $expectation )

testPrepareProjectionShouldThrownAnException() 공개 메소드

testShouldBeAbleToConstructWithSchema() 공개 메소드

testShouldDelete() 공개 메소드

public testShouldDelete ( $entity, $writeConcern, $shouldFireEventAfter, $expected )

testShouldGetAll() 공개 메소드

public testShouldGetAll ( )

testShouldGetFirstProjectingFields() 공개 메소드

testShouldGetFirstTroughACacheableCursor() 공개 메소드

testShouldGetFirstTroughACacheableCursorProjectingFields() 공개 메소드

testShouldGetFirstWithQuery() 공개 메소드

testShouldGetNullIfFirstCantFindAnything() 공개 메소드

testShouldGetRawCollection() 공개 메소드

testShouldGetSchemaMapper() 공개 메소드

testShouldGetWithWhereQuery() 공개 메소드

testShouldInsert() 공개 메소드

public testShouldInsert ( $entity, $writeConcern, $shouldFireEventAfter, $expected )

testShouldInsertWithoutFiringEvents() 공개 메소드

public testShouldInsertWithoutFiringEvents ( $entity, $writeConcern, $shouldFireEventAfter, $expected )

testShouldParseObjectToDocumentAndPutResultingIdIntoTheGivenObject() 공개 메소드

testShouldPrepareQueryValue() 공개 메소드

public testShouldPrepareQueryValue ( $value, $expectation )

testShouldSave() 공개 메소드

public testShouldSave ( $entity, $writeConcern, $shouldFireEventAfter, $expected )

testShouldUpdate() 공개 메소드

public testShouldUpdate ( $entity, $writeConcern, $shouldFireEventAfter, $expected )

testUpdateShouldCallInsertWhenObjectHasNoId() 공개 메소드

public testUpdateShouldCallInsertWhenObjectHasNoId ( $entity, $writeConcern, $shouldFireEventAfter, $expected )

프로퍼티 상세

$eventService 보호되어 있는 프로퍼티

protected MockInterface,Mockery|EventTriggerService,Mongolid\Event $eventService
리턴 Mockery\MockInterface | Mongolid\Event\EventTriggerService