\Dewdrop\Test\DbTruncateOperation

A custom truncate operation that works with tables that are referenced by foreign key constraints.

Summary

Methods
Properties
Constants
execute()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

execute()

execute(\PHPUnit_Extensions_Database_DB_IDatabaseConnection  $connection, \PHPUnit_Extensions_Database_DataSet_IDataSet  $dataSet) : void

Disable foreign key constraint checking prior to running the stock PHPUnit truncate operation and then re-enable it.

Parameters

\PHPUnit_Extensions_Database_DB_IDatabaseConnection $connection
\PHPUnit_Extensions_Database_DataSet_IDataSet $dataSet