PHP Класс Phalcon\Test\ModelTestCase

Наследование: extends UnitTestCase
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
emptyTable ( string $table ) : boolean Empties a table in the database.
populateTable ( string $table, null $records = null ) Populates a table with default data
truncateTable ( string $table ) : boolean Disables FOREIGN_KEY_CHECKS and truncates database table

Защищенные методы

Метод Описание
setDb ( string $dbType = 'mysql' ) : void Sets the database adapter in the DI container
setUp ( ) This method is called before a test is executed.

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

emptyTable() публичный метод

Empties a table in the database.
public emptyTable ( string $table ) : boolean
$table string
Результат boolean

populateTable() публичный метод

Populates a table with default data
public populateTable ( string $table, null $records = null )
$table string
$records null

setDb() защищенный метод

Sets the database adapter in the DI container
protected setDb ( string $dbType = 'mysql' ) : void
$dbType string Sets the database type for the test
Результат void

setUp() защищенный метод

This method is called before a test is executed.
protected setUp ( )

truncateTable() публичный метод

Disables FOREIGN_KEY_CHECKS and truncates database table
public truncateTable ( string $table ) : boolean
$table string table name
Результат boolean result of truncate operation