PHP Class Phalcon\Test\Unit\Mvc\CollectionTest

Author: Andres Gutierrez ([email protected])
Author: Serghei Iakovlev ([email protected])
Inheritance: extends Phalcon\Test\Module\UnitTest, use trait Helper\CollectionTrait
Afficher le fichier Open project: phalcon/cphalcon

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
_before ( ) executed before each test
clearCollection ( )
createDocument ( array $fields )

Method Details

_before() protected méthode

executed before each test
protected _before ( )

clearCollection() protected méthode

protected clearCollection ( )

createDocument() protected méthode

protected createDocument ( array $fields )
$fields array

testCollectionsEvents() public méthode

testCollectionsSerialize() public méthode

testShouldCatchExceptionOnUpdateNonExistentDocument() public méthode

Tests triggering exception on update non existent document
Since: 2016-03-03
Author: Serghei Iakovlev ([email protected])

testShouldCountDocumentsInCollection() public méthode

Tests Collection::count
Since: 2016-03-13
Author: Serghei Iakovlev ([email protected])

testShouldCreateDocument() public méthode

Tests Collection::create
Since: 2016-03-13
Author: Serghei Iakovlev ([email protected])

testShouldCreateIfNotExistDocument() public méthode

Tests Collection::createIfNotExist
Since: 2016-03-13
Author: Serghei Iakovlev ([email protected])

testShouldGetArrayOfCollectionsByUsingFind() public méthode

Tests Collection::find
Since: 2016-03-03
Author: Serghei Iakovlev ([email protected])

testShouldGetCollectionByUsingFindFirst() public méthode

Tests Collection::findFirst
Since: 2016-03-13
Author: Serghei Iakovlev ([email protected])

testShouldGetTrueWhenSaveDocument() public méthode

Tests Collection::save
Since: 2016-03-13
Author: Serghei Iakovlev ([email protected])

testShouldUpdateDocument() public méthode

testShouldUseCorrectMongoId() public méthode

Tests Collection::findById
Since: 2016-07-24
Author: Serghei Iakovlev ([email protected])