PHP Class RedUNIT\Base\Association

Author: Gabor de Mooij and the RedBeanPHP Community
Inheritance: extends RedUNIT\Base
Show file Open project: gabordemooij/redbean

Public Methods

Method Description
testCrossAssociation ( ) : void Test self-referential associations.
testErrorHandling ( ) : void Tests error handling related to association.
testFastTrackDeletion ( ) : void Test fast-track deletion, i.e. bypassing FUSE.
testMultiAssociationDissociation ( ) : void Test multiple assiociation.
testMySQL ( ) : void MySQL specific tests.
testOneToOne ( ) : void Test limited support for 1-to-1 associations.
testPoly ( ) : void Test limited support for polymorph associations.
testSingleColUniqueConstraint ( ) : void Test single column bases unique constraints.

Method Details

testCrossAssociation() public method

Test self-referential associations.
public testCrossAssociation ( ) : void
return void

testErrorHandling() public method

On database systems providing informative SQL STATE error codes RedBeanPHP should not mind non-existing tables or columns in fluid mode.
public testErrorHandling ( ) : void
return void

testFastTrackDeletion() public method

For link beans.
public testFastTrackDeletion ( ) : void
return void

testMultiAssociationDissociation() public method

Test multiple assiociation.

testMySQL() public method

Test MySQL specific issues with constraints.
public testMySQL ( ) : void
return void

testOneToOne() public method

The rule is, one-to-ones are supposes to be in the same table, this is just for some legacy tables not designed to work with RedBeanPHP at all.
public testOneToOne ( ) : void
return void

testPoly() public method

RedBeanPHP does not really feature polymorph relations since they are not really compatible with traditional relational databases. However a light-weight, basic implementation has been added for those circumstances where you can't live without... i.e... possible legacy systems and so on.
public testPoly ( ) : void
return void

testSingleColUniqueConstraint() public method

Test single column bases unique constraints.