PHP Class lithium\tests\integration\data\DatabaseTest

Inheritance: extends lithium\test\Unit
Show file Open project: unionofrad/lithium

Protected Properties

Property Type Description
$_export
$_fixtures

Public Methods

Method Description
setUp ( ) Creating the test database
skip ( ) Skip the test if no allowed database connection available.
tearDown ( ) Dropping the test database
testConnectWithNoDatabase ( )
testConnectWithWrongHost ( )
testConnectWithWrongPassword ( )
testCreateData ( )
testDistinctResultsInNoDuplicates ( ) Tests if DISTINCT queries work as expected and do not duplicate records.
testExecuteException ( )
testFields ( )
testGroup ( )
testManyToOne ( )
testOneToMany ( )
testOneToManyUsingSameKeyName ( )
testOrder ( )
testOrderWithHasManyThrowsExceptionIfNonSequential ( )
testOrderWithHasManyWorksIfOrderByMainIdFirst ( )
testOrderWithRelationAndLimit ( )
testRemove ( )
testSubqueryWithMultipleRecords ( ) Tests that even when using a subquery the correct number of records is returned.
testSwitchingDatabaseDistinctModels ( ) Prove that two distinct models each having a different connection to a different database are working independently upon the correct databases.
testSwitchingDatabaseOnModel ( ) Prove that one model's connection can be switched while keeping on working upon the correct databases.
testUpdate ( )
testValueWithHardcodedSchema ( ) Tests if the value() and _cast() methods work correctly when a schema is hardcoded.

Method Details

setUp() public method

Creating the test database
public setUp ( )

skip() public method

Skip the test if no allowed database connection available.
public skip ( )

tearDown() public method

Dropping the test database
public tearDown ( )

testConnectWithNoDatabase() public method

testConnectWithWrongHost() public method

testConnectWithWrongPassword() public method

testCreateData() public method

public testCreateData ( )

testDistinctResultsInNoDuplicates() public method

Tests if DISTINCT queries work as expected and do not duplicate records.

testExecuteException() public method

testFields() public method

public testFields ( )

testGroup() public method

public testGroup ( )

testManyToOne() public method

public testManyToOne ( )

testOneToMany() public method

public testOneToMany ( )

testOneToManyUsingSameKeyName() public method

testOrder() public method

public testOrder ( )

testOrderWithHasManyThrowsExceptionIfNonSequential() public method

testOrderWithHasManyWorksIfOrderByMainIdFirst() public method

testOrderWithRelationAndLimit() public method

testRemove() public method

public testRemove ( )

testSubqueryWithMultipleRecords() public method

Tests that even when using a subquery the correct number of records is returned.

testSwitchingDatabaseDistinctModels() public method

Prove that two distinct models each having a different connection to a different database are working independently upon the correct databases.

testSwitchingDatabaseOnModel() public method

Prove that one model's connection can be switched while keeping on working upon the correct databases.

testUpdate() public method

public testUpdate ( )

testValueWithHardcodedSchema() public method

Tests if the value() and _cast() methods work correctly when a schema is hardcoded.

Property Details

$_export protected property

protected $_export

$_fixtures protected property

protected $_fixtures