PHP Класс Phalcon\Test\Unit\Mvc\CollectionTest

Автор: Andres Gutierrez ([email protected])
Автор: Serghei Iakovlev ([email protected])
Наследование: extends Phalcon\Test\Module\UnitTest, use trait Helper\CollectionTrait
Показать файл Открыть проект

Открытые методы

Метод Описание
testCollectionsEvents ( )
testCollectionsSerialize ( )
testShouldCatchExceptionOnUpdateNonExistentDocument ( ) Tests triggering exception on update non existent document
testShouldCountDocumentsInCollection ( ) Tests Collection::count
testShouldCreateDocument ( ) Tests Collection::create
testShouldCreateIfNotExistDocument ( ) Tests Collection::createIfNotExist
testShouldGetArrayOfCollectionsByUsingFind ( ) Tests Collection::find
testShouldGetCollectionByUsingFindFirst ( ) Tests Collection::findFirst
testShouldGetTrueWhenSaveDocument ( ) Tests Collection::save
testShouldUpdateDocument ( )
testShouldUseCorrectMongoId ( ) Tests Collection::findById

Защищенные методы

Метод Описание
_before ( ) executed before each test
clearCollection ( )
createDocument ( array $fields )

Описание методов

_before() защищенный Метод

executed before each test
protected _before ( )

clearCollection() защищенный Метод

protected clearCollection ( )

createDocument() защищенный Метод

protected createDocument ( array $fields )
$fields array

testCollectionsEvents() публичный Метод

testCollectionsSerialize() публичный Метод

testShouldCatchExceptionOnUpdateNonExistentDocument() публичный Метод

Tests triggering exception on update non existent document
С версии: 2016-03-03
Автор: Serghei Iakovlev ([email protected])

testShouldCountDocumentsInCollection() публичный Метод

Tests Collection::count
С версии: 2016-03-13
Автор: Serghei Iakovlev ([email protected])

testShouldCreateDocument() публичный Метод

Tests Collection::create
С версии: 2016-03-13
Автор: Serghei Iakovlev ([email protected])

testShouldCreateIfNotExistDocument() публичный Метод

Tests Collection::createIfNotExist
С версии: 2016-03-13
Автор: Serghei Iakovlev ([email protected])

testShouldGetArrayOfCollectionsByUsingFind() публичный Метод

Tests Collection::find
С версии: 2016-03-03
Автор: Serghei Iakovlev ([email protected])

testShouldGetCollectionByUsingFindFirst() публичный Метод

Tests Collection::findFirst
С версии: 2016-03-13
Автор: Serghei Iakovlev ([email protected])

testShouldGetTrueWhenSaveDocument() публичный Метод

Tests Collection::save
С версии: 2016-03-13
Автор: Serghei Iakovlev ([email protected])

testShouldUpdateDocument() публичный Метод

testShouldUseCorrectMongoId() публичный Метод

Tests Collection::findById
С версии: 2016-07-24
Автор: Serghei Iakovlev ([email protected])