Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Mongolid
ActiveRecordTest
setUp
Mongolid\ActiveRecordTest::setUp PHP Method
ActiveRecordTest Class Documentation
Show file
Open project: leroy-merlin-br/mongolid
setUp()
public
method
public
setUp
( )
public function setUp() { parent::setUp(); $this->entity = new class extends ActiveRecord { }; }
ActiveRecordTest
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