trait
Illuminate
/
Foundation
/
Testing
/
RefreshDatabase
RefreshDatabase
Methods
public
refreshDatabase ( ) : void
Define hooks to migrate the database before and after each test.
protected
usingInMemoryDatabase ( ) : bool
Determine if an in-memory database is being used.
protected
refreshInMemoryDatabase ( ) : void
Refresh the in-memory database.
protected
migrateUsing ( ) : array
The parameters that should be used when running "migrate".
protected
refreshTestDatabase ( ) : void
Refresh a conventional test database.
public
beginDatabaseTransaction ( ) : void
Begin a database transaction on the testing database.
protected
connectionsToTransact ( ) : array
The database connections that should have transactions.
protected
beforeRefreshingDatabase ( ) : void
Perform any work that should take place before the database has started refreshing.
protected
afterRefreshingDatabase ( ) : void
Perform any work that should take place once the database has finished refreshing.