PHP Класс RedUNIT\Base\Database

Tests basic RedBeanPHP database functionality.
Автор: Gabor de Mooij and the RedBeanPHP Community
Наследование: extends RedUNIT\Base
Показать файл Открыть проект

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

Метод Описание
getTargetDrivers ( ) What drivers should be loaded for this test pack?
testColonsInSQL ( ) : void Can we use colons in SQL?
testConnectionTester ( ) : void Test for testConnection() method.
testDirectPDO ( ) : void Test setting direct PDO.
testDriver ( ) : void Test the database driver and low level functions.
testEmptyBean ( ) Tests whether we can store an empty bean.
testFetchTypes ( ) Tests the various ways to fetch (select queries) data using adapter methods in the facade.
testSelects ( ) : void Test selecting.
testSetMaxBind ( ) : void Test setter maximum integer bindings.

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

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

What drivers should be loaded for this test pack?
public getTargetDrivers ( )

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

Can we use colons in SQL?
public testColonsInSQL ( ) : void
Результат void

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

Test for testConnection() method.
public testConnectionTester ( ) : void
Результат void

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

Not much to test actually.
public testDirectPDO ( ) : void
Результат void

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

Test the database driver and low level functions.
public testDriver ( ) : void
Результат void

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

An empty bean has no properties, only ID. Normally we would skip the ID field in an INSERT, this test forces the driver to specify a value for the ID field. Different writers have to use different values: Mysql uses NULL to insert a new auto-generated ID, while Postgres has to use DEFAULT.
public testEmptyBean ( )

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

Also tests the new R::getAssocRow() method, as requested in issue #324.
public testFetchTypes ( )

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

Test selecting.
public testSelects ( ) : void
Результат void

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

Test setter maximum integer bindings.
public testSetMaxBind ( ) : void
Результат void