PHP Class RedUNIT\Mysql\Foreignkeys

Tests creation and validity of foreign keys, foreign key constraints and indexes in Mysql/MariaDB. Also tests whether the correct contraint action has been selected.
Author: Gabor de Mooij and the RedBeanPHP Community
Inheritance: extends RedUNIT\Mysql
Show file Open project: gabordemooij/redbean

Public Methods

Method Description
testAddingForeignKey ( ) : void Test adding foreign keys.
testAddingIndex ( ) : void Test whether we can manually create indexes.
testContrain ( ) : void Test adding of constraints directly by invoking the writer method.
testFKS ( ) : void Basic FK tests.
testKWConflicts ( ) : void Test whether we can use foreign keys with keywords.
testWideningColumnForConstraint ( ) : void Test widen for constraint.

Method Details

testAddingForeignKey() public method

Test adding foreign keys.
public testAddingForeignKey ( ) : void
return void

testAddingIndex() public method

Test whether we can manually create indexes.
public testAddingIndex ( ) : void
return void

testContrain() public method

Test adding of constraints directly by invoking the writer method.
public testContrain ( ) : void
return void

testFKS() public method

Basic FK tests.
public testFKS ( ) : void
return void

testKWConflicts() public method

Test whether we can use foreign keys with keywords.
public testKWConflicts ( ) : void
return void

testWideningColumnForConstraint() public method

Test widen for constraint.