PHP Class RedUNIT\Postgres\Foreignkeys

Tests creation and validity of foreign keys, foreign key constraints and indexes in PostgreSQL. Also tests whether the correct contraint action has been selected.
Author: Gabor de Mooij and the RedBeanPHP Community
Inheritance: extends RedUNIT\Postgres
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.
testConstraint ( ) : void Test constraint function directly in Writer.
testForeignKeysWithPostgres ( ) Test foreign keys with postgres.

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

testConstraint() public method

Test constraint function directly in Writer.
public testConstraint ( ) : void
return void

testForeignKeysWithPostgres() public method

Test foreign keys with postgres.