RefreshDatabase
trait RefreshDatabase (View source)
Methods
Define hooks to migrate the database before and after each test.
Determine if an in-memory database is being used.
Refresh the in-memory database.
Refresh a conventional test database.
Begin a database transaction on the testing database.
The database connections that should have transactions.
Determine if views should be dropped when refreshing the database.
Determine if types should be dropped when refreshing the database.
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.
        
                    protected        bool
    shouldDropViews()
        
    
    Determine if views should be dropped when refreshing the database.
        
                    protected        bool
    shouldDropTypes()
        
    
    Determine if types should be dropped when refreshing the database.