PHP 클래스 Mongolid\ActiveRecordTest

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

보호된 프로퍼티들

프로퍼티 타입 설명
$entity ActiveRecord

공개 메소드들

메소드 설명
setUp ( )
tearDown ( )
testDeleteShouldReturnFalseIfCollectionIsNull ( )
testInsertShouldReturnFalseIfCollectionIsNull ( )
testSaveShouldReturnFalseIfCollectionIsNull ( )
testShouldAttachToAttribute ( )
testShouldDelete ( )
testShouldEmbedToAttribute ( )
testShouldGetAll ( )
testShouldGetCollectionName ( )
testShouldGetDataMapper ( )
testShouldGetFirstOrFail ( )
testShouldGetFirstOrNewAndReturnExistingModel ( )
testShouldGetFirstOrNewAndReturnNewModel ( )
testShouldGetFirstWithQuery ( )
testShouldGetSchemaIfFieldsDescribesSchemaFields ( )
testShouldGetSchemaIfFieldsIsTheClassName ( )
testShouldGetSetWriteConcernInActiveRecordClass ( )
testShouldGetWithWhereQuery ( )
testShouldHaveCorrectPropertiesByDefault ( )
testShouldImplementModelTraits ( )
testShouldInsert ( )
testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallAllFunction ( )
testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallFirstFunction ( )
testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallWhereFunction ( )
testShouldSave ( )
testShouldThrowBadMethodCallExceptionWhenCallingInvalidMethod ( )
testShouldUpdate ( )
testUpdateShouldReturnFalseIfCollectionIsNull ( )

메소드 상세

setUp() 공개 메소드

public setUp ( )

tearDown() 공개 메소드

public tearDown ( )

testDeleteShouldReturnFalseIfCollectionIsNull() 공개 메소드

testInsertShouldReturnFalseIfCollectionIsNull() 공개 메소드

testSaveShouldReturnFalseIfCollectionIsNull() 공개 메소드

testShouldAttachToAttribute() 공개 메소드

testShouldDelete() 공개 메소드

public testShouldDelete ( )

testShouldEmbedToAttribute() 공개 메소드

testShouldGetAll() 공개 메소드

public testShouldGetAll ( )

testShouldGetCollectionName() 공개 메소드

testShouldGetDataMapper() 공개 메소드

testShouldGetFirstOrFail() 공개 메소드

testShouldGetFirstOrNewAndReturnExistingModel() 공개 메소드

testShouldGetFirstOrNewAndReturnNewModel() 공개 메소드

testShouldGetFirstWithQuery() 공개 메소드

testShouldGetSchemaIfFieldsDescribesSchemaFields() 공개 메소드

testShouldGetSchemaIfFieldsIsTheClassName() 공개 메소드

testShouldGetSetWriteConcernInActiveRecordClass() 공개 메소드

testShouldGetWithWhereQuery() 공개 메소드

testShouldHaveCorrectPropertiesByDefault() 공개 메소드

testShouldImplementModelTraits() 공개 메소드

testShouldInsert() 공개 메소드

public testShouldInsert ( )

testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallAllFunction() 공개 메소드

testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallFirstFunction() 공개 메소드

testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallWhereFunction() 공개 메소드

testShouldSave() 공개 메소드

public testShouldSave ( )

testShouldThrowBadMethodCallExceptionWhenCallingInvalidMethod() 공개 메소드

testShouldUpdate() 공개 메소드

public testShouldUpdate ( )

testUpdateShouldReturnFalseIfCollectionIsNull() 공개 메소드

프로퍼티 상세

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

protected ActiveRecord,mongolid $entity
리턴 ActiveRecord