Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
setDb ( string $dbType = 'mysql' ) : void | Sets the database adapter in the DI container | |
setUp ( ) | This method is called before a test is executed. |
public emptyTable ( string $table ) : boolean | ||
$table | string | |
return | boolean |
public populateTable ( string $table, null $records = null ) | ||
$table | string | |
$records | null |
public truncateTable ( string $table ) : boolean | ||
$table | string | table name |
return | boolean | result of truncate operation |