Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
Mongolid
ActiveRecordTest
PHP Класс Mongolid\ActiveRecordTest
Наследование:
extends
TestCas\TestCase
Показать файл
Открыть проект
Защищенные свойства (Protected)
Свойство
Тип
Описание
$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()
публичный
метод
public
testDeleteShouldReturnFalseIfCollectionIsNull
( )
testInsertShouldReturnFalseIfCollectionIsNull()
публичный
метод
public
testInsertShouldReturnFalseIfCollectionIsNull
( )
testSaveShouldReturnFalseIfCollectionIsNull()
публичный
метод
public
testSaveShouldReturnFalseIfCollectionIsNull
( )
testShouldAttachToAttribute()
публичный
метод
public
testShouldAttachToAttribute
( )
testShouldDelete()
публичный
метод
public
testShouldDelete
( )
testShouldEmbedToAttribute()
публичный
метод
public
testShouldEmbedToAttribute
( )
testShouldGetAll()
публичный
метод
public
testShouldGetAll
( )
testShouldGetCollectionName()
публичный
метод
public
testShouldGetCollectionName
( )
testShouldGetDataMapper()
публичный
метод
public
testShouldGetDataMapper
( )
testShouldGetFirstOrFail()
публичный
метод
public
testShouldGetFirstOrFail
( )
testShouldGetFirstOrNewAndReturnExistingModel()
публичный
метод
public
testShouldGetFirstOrNewAndReturnExistingModel
( )
testShouldGetFirstOrNewAndReturnNewModel()
публичный
метод
public
testShouldGetFirstOrNewAndReturnNewModel
( )
testShouldGetFirstWithQuery()
публичный
метод
public
testShouldGetFirstWithQuery
( )
testShouldGetSchemaIfFieldsDescribesSchemaFields()
публичный
метод
public
testShouldGetSchemaIfFieldsDescribesSchemaFields
( )
testShouldGetSchemaIfFieldsIsTheClassName()
публичный
метод
public
testShouldGetSchemaIfFieldsIsTheClassName
( )
testShouldGetSetWriteConcernInActiveRecordClass()
публичный
метод
public
testShouldGetSetWriteConcernInActiveRecordClass
( )
testShouldGetWithWhereQuery()
публичный
метод
public
testShouldGetWithWhereQuery
( )
testShouldHaveCorrectPropertiesByDefault()
публичный
метод
public
testShouldHaveCorrectPropertiesByDefault
( )
testShouldImplementModelTraits()
публичный
метод
public
testShouldImplementModelTraits
( )
testShouldInsert()
публичный
метод
public
testShouldInsert
( )
testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallAllFunction()
публичный
метод
public
testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallAllFunction
( )
testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallFirstFunction()
публичный
метод
public
testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallFirstFunction
( )
testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallWhereFunction()
публичный
метод
public
testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallWhereFunction
( )
testShouldSave()
публичный
метод
public
testShouldSave
( )
testShouldThrowBadMethodCallExceptionWhenCallingInvalidMethod()
публичный
метод
public
testShouldThrowBadMethodCallExceptionWhenCallingInvalidMethod
( )
testShouldUpdate()
публичный
метод
public
testShouldUpdate
( )
testUpdateShouldReturnFalseIfCollectionIsNull()
публичный
метод
public
testUpdateShouldReturnFalseIfCollectionIsNull
( )
Описание свойств
$entity
защищенное свойство
protected
ActiveRecord,mongolid
$entity
Результат
ActiveRecord