$migrated
public
static bool
$migrated
= false
Trait enabling wrapping of each test case in a database transaction Based on Laravel `RefreshDatabase` Traits
$migrated | bool | |
---|---|---|
refreshDatabase() | Define hooks to migrate the database before and after each test. | mixed |
usingInMemoryDatabase() | Determine if an in-memory database is being used. | bool |
refreshInMemoryDatabase() | Refresh the in-memory database. | mixed |
refreshTestDatabase() | Refresh a conventional test database. | mixed |
beginDatabaseTransaction() | Handle database transactions on the specified connections. | mixed |
connectionsToTransact() | The database connections that should have transactions. | array |
public
static bool
$migrated
= false
Define hooks to migrate the database before and after each test.
public
refreshDatabase(
)
: mixed
Determine if an in-memory database is being used.
public
usingInMemoryDatabase(
)
: bool
Refresh the in-memory database.
protected
refreshInMemoryDatabase(
)
: mixed
Refresh a conventional test database.
protected
refreshTestDatabase(
)
: mixed
Handle database transactions on the specified connections.
protected
beginDatabaseTransaction(
)
: mixed
The database connections that should have transactions.
protected
connectionsToTransact(
)
: array