trait Illuminate / Foundation / Testing / DatabaseTruncation

DatabaseTruncation

Properties

protected static

$allTables array

The cached names of the database tables for each connection.

Default: null

Methods

protected

truncateDatabaseTables ( ) : void

Truncate the database tables for all configured connections.

protected

truncateTablesForAllConnections ( ) : void

Truncate the database tables for all configured connections.

protected

truncateTablesForConnection ( ConnectionInterface $connection , string $name ) : void

Truncate the database tables for the given database connection.

Parameters

protected

connectionsToTruncate ( ) : array

The database connections that should have their tables truncated.

protected

exceptTables ( string $connectionName ) : array

Get the tables that should not be truncated.

Parameters

  • $connectionName string|null