PHP Class lithium\tests\integration\data\DatabaseTest

Inheritance: extends lithium\test\Unit
Afficher le fichier Open project: unionofrad/lithium

Protected Properties

Свойство Type Description
$_export
$_fixtures

Méthodes publiques

Méthode 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 méthode

Creating the test database
public setUp ( )

skip() public méthode

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

tearDown() public méthode

Dropping the test database
public tearDown ( )

testConnectWithNoDatabase() public méthode

testConnectWithWrongHost() public méthode

testConnectWithWrongPassword() public méthode

testCreateData() public méthode

public testCreateData ( )

testDistinctResultsInNoDuplicates() public méthode

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

testExecuteException() public méthode

testFields() public méthode

public testFields ( )

testGroup() public méthode

public testGroup ( )

testManyToOne() public méthode

public testManyToOne ( )

testOneToMany() public méthode

public testOneToMany ( )

testOneToManyUsingSameKeyName() public méthode

testOrder() public méthode

public testOrder ( )

testOrderWithHasManyThrowsExceptionIfNonSequential() public méthode

testOrderWithHasManyWorksIfOrderByMainIdFirst() public méthode

testOrderWithRelationAndLimit() public méthode

testRemove() public méthode

public testRemove ( )

testSubqueryWithMultipleRecords() public méthode

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

testSwitchingDatabaseDistinctModels() public méthode

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

testSwitchingDatabaseOnModel() public méthode

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

testUpdate() public méthode

public testUpdate ( )

testValueWithHardcodedSchema() public méthode

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

Property Details

$_export protected_oe property

protected $_export

$_fixtures protected_oe property

protected $_fixtures