PHP Класс lithium\tests\integration\data\DatabaseTest

Наследование: extends lithium\test\Unit
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_export
$_fixtures

Открытые методы

Метод Описание
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.

Описание методов

setUp() публичный Метод

Creating the test database
public setUp ( )

skip() публичный Метод

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

tearDown() публичный Метод

Dropping the test database
public tearDown ( )

testConnectWithNoDatabase() публичный Метод

testConnectWithWrongHost() публичный Метод

testConnectWithWrongPassword() публичный Метод

testCreateData() публичный Метод

public testCreateData ( )

testDistinctResultsInNoDuplicates() публичный Метод

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

testExecuteException() публичный Метод

testFields() публичный Метод

public testFields ( )

testGroup() публичный Метод

public testGroup ( )

testManyToOne() публичный Метод

public testManyToOne ( )

testOneToMany() публичный Метод

public testOneToMany ( )

testOneToManyUsingSameKeyName() публичный Метод

testOrder() публичный Метод

public testOrder ( )

testOrderWithHasManyThrowsExceptionIfNonSequential() публичный Метод

testOrderWithHasManyWorksIfOrderByMainIdFirst() публичный Метод

testOrderWithRelationAndLimit() публичный Метод

testRemove() публичный Метод

public 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() публичный Метод

public testUpdate ( )

testValueWithHardcodedSchema() публичный Метод

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

Описание свойств

$_export защищенное свойство

protected $_export

$_fixtures защищенное свойство

protected $_fixtures