PHP Class Phalcon\Test\Unit\Mvc\ModelTest

Author: Andres Gutierrez ([email protected])
Author: Serghei Iakovlev ([email protected])
Author: Wojciech Ślawski ([email protected])
Inheritance: extends Phalcon\Test\Module\UnitTest
显示文件 Open project: phalcon/cphalcon

Public Methods

Method Description
testBehaviorsSoftDelete ( )
testBehaviorsTimestampable ( )
testCamelCaseRelation ( )
testEmptyConditions ( ) Tests find with empty conditions + bind and limit.
testFindersNormal ( )
testFindersRenamed ( )
testGettersAndSetters ( )
testInvalidVirtualForeignKeys ( ) Tests virtual foreign keys.
testJsonSerialize ( )
testMassAssignmentNormal ( )
testMassAssignmentRenamed ( )
testMultiRelationColumn ( ) Tests Model::hasMany by using multi relation column
testReusableRelation ( ) Tests reusing Model relation
testSerialize ( )
testSerializeSnapshotCache ( ) Tests serializing model while using cache and keeping snapshots
testSnapshotNormal ( )
testSnapshotNormalComplex ( )
testSnapshotRenamed ( )

Protected Methods

Method Description
_before ( )

Method Details

_before() protected method

protected _before ( )

testBehaviorsSoftDelete() public method

testBehaviorsTimestampable() public method

testCamelCaseRelation() public method

testEmptyConditions() public method

Tests find with empty conditions + bind and limit.
Since: 2016-07-29
Author: Serghei Iakovlev ([email protected])
public testEmptyConditions ( )

testFindersNormal() public method

public testFindersNormal ( )

testFindersRenamed() public method

public testFindersRenamed ( )

testGettersAndSetters() public method

testInvalidVirtualForeignKeys() public method

When having multiple virtual foreign keys, check of the first one should affect the check of the next one.
Since: 2016-08-03
Author: Radek Crlik ([email protected])

testJsonSerialize() public method

public testJsonSerialize ( )

testMassAssignmentNormal() public method

testMassAssignmentRenamed() public method

testMultiRelationColumn() public method

Tests Model::hasMany by using multi relation column
Since: 2016-08-02
Author: Serghei Iakovlev ([email protected])

testReusableRelation() public method

Tests reusing Model relation
Since: 2016-08-03
Author: Serghei Iakovlev ([email protected])

testSerialize() public method

public testSerialize ( )

testSerializeSnapshotCache() public method

The snapshot should be saved while using cache
Since: 2016-08-26
Author: Wojciech Ślawski ([email protected])

testSnapshotNormal() public method

public testSnapshotNormal ( )

testSnapshotNormalComplex() public method

testSnapshotRenamed() public method

public testSnapshotRenamed ( )