PHP Class RedUNIT\Sqlite\Foreignkeys

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

Public Methods

Method Description
testAddingForeignKeys ( ) : void Test adding foreign keys.
testAddingIndex ( ) : void Test whether we can manually create indexes.
testConstrain ( ) : void Constrain test for SQLite Writer.
testForeignKeysWithSQLite ( ) : void Test foreign keys with SQLite.
testIndexException ( ) : void addIndex should not trigger exception.

Method Details

testAddingForeignKeys() public method

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

testAddingIndex() public method

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

testConstrain() public method

Constrain test for SQLite Writer.
public testConstrain ( ) : void
return void

testForeignKeysWithSQLite() public method

Test foreign keys with SQLite.
public testForeignKeysWithSQLite ( ) : void
return void

testIndexException() public method

..
public testIndexException ( ) : void
return void