RefreshDatabase
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.  |  
Details
void refreshDatabase()
Define hooks to migrate the database before and after each test.
protected bool usingInMemoryDatabase()
Determine if an in-memory database is being used.
protected void refreshInMemoryDatabase()
Refresh the in-memory database.
protected void refreshTestDatabase()
Refresh a conventional test database.
void beginDatabaseTransaction()
Begin a database transaction on the testing database.
protected array connectionsToTransact()
The database connections that should have transactions.
    © Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
    https://laravel.com/api/5.5/Illuminate/Foundation/Testing/RefreshDatabase.html