UserFrosting API

DatabaseTransactions

Trait enabling wrapping of each test case in a database transaction Based on Laravel `DatabaseTransactions` Traits

Tags
author

Louis Charette

Table of Contents

beginDatabaseTransaction() Handle database transactions on the specified connections. mixed
connectionsToTransact() The database connections that should have transactions. array

Methods

beginDatabaseTransaction()

Handle database transactions on the specified connections.

public beginDatabaseTransaction( ) : mixed
Return values
mixed

connectionsToTransact()

The database connections that should have transactions.

protected connectionsToTransact( ) : array
Return values
array

Search results