trait
Illuminate
/
Foundation
/
Testing
/
RefreshDatabase
You are viewing an older version of the documentation. For the latest, please visit master documentation.
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
afterRefreshingDatabase ( ) : void
Perform any work that should take place once the database has finished refreshing.