PHP 클래스 Phalcon\Test\Unit\Mvc\CollectionTest

저자: Andres Gutierrez ([email protected])
저자: Serghei Iakovlev ([email protected])
상속: extends Phalcon\Test\Module\UnitTest, use trait Helper\CollectionTrait
파일 보기 프로젝트 열기: phalcon/cphalcon

공개 메소드들

메소드 설명
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])