trait RefreshDatabase (View source)

Methods

void
refreshDatabase()

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

bool
usingInMemoryDatabase()

Determine if an in-memory database is being used.

void
refreshInMemoryDatabase()

Refresh the in-memory database.

void
refreshTestDatabase()

Refresh a conventional test database.

void
beginDatabaseTransaction()

Begin a database transaction on the testing database.

array
connectionsToTransact()

The database connections that should have transactions.

bool
shouldDropViews()

Determine if views should be dropped when refreshing the database.

bool
shouldDropTypes()

Determine if types should be dropped when refreshing the database.

Details

void refreshDatabase()

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

Return Value

void

protected bool usingInMemoryDatabase()

Determine if an in-memory database is being used.

Return Value

bool

protected void refreshInMemoryDatabase()

Refresh the in-memory database.

Return Value

void

protected void refreshTestDatabase()

Refresh a conventional test database.

Return Value

void

void beginDatabaseTransaction()

Begin a database transaction on the testing database.

Return Value

void

protected array connectionsToTransact()

The database connections that should have transactions.

Return Value

array

protected bool shouldDropViews()

Determine if views should be dropped when refreshing the database.

Return Value

bool

protected bool shouldDropTypes()

Determine if types should be dropped when refreshing the database.

Return Value

bool