Documentation

RefreshDatabase

Table of Contents

beginDatabaseTransaction()  : void
Begin a database transaction on the testing database.
refreshDatabase()  : void
Define hooks to migrate the database before and after each test.
connectionsToTransact()  : array<string|int, mixed>
The database connections that should have transactions.
refreshInMemoryDatabase()  : void
Refresh the in-memory database.
refreshTestDatabase()  : void
Refresh a conventional test database.
usingInMemoryDatabase()  : bool
Determine if an in-memory database is being used.

Methods

beginDatabaseTransaction()

Begin a database transaction on the testing database.

public beginDatabaseTransaction() : void
Return values
void

refreshDatabase()

Define hooks to migrate the database before and after each test.

public refreshDatabase() : void
Return values
void

connectionsToTransact()

The database connections that should have transactions.

protected connectionsToTransact() : array<string|int, mixed>
Return values
array<string|int, mixed>

refreshInMemoryDatabase()

Refresh the in-memory database.

protected refreshInMemoryDatabase() : void
Return values
void

refreshTestDatabase()

Refresh a conventional test database.

protected refreshTestDatabase() : void
Return values
void

usingInMemoryDatabase()

Determine if an in-memory database is being used.

protected usingInMemoryDatabase() : bool
Return values
bool

Search results