api/laravel/Foundation/Testing/RefreshDatabase.yaml

86 lines
1.9 KiB
YAML
Raw Permalink Normal View History

2024-09-26 09:03:21 +00:00
name: RefreshDatabase
class_comment: null
dependencies:
- name: Kernel
type: class
source: Illuminate\Contracts\Console\Kernel
- name: CanConfigureMigrationCommands
type: class
source: Illuminate\Foundation\Testing\Traits\CanConfigureMigrationCommands
- name: CanConfigureMigrationCommands
type: class
source: CanConfigureMigrationCommands
properties: []
methods:
- name: refreshDatabase
visibility: public
parameters: []
comment: '# * Define hooks to migrate the database before and after each test.
# *
# * @return void'
- name: usingInMemoryDatabase
visibility: protected
parameters: []
comment: '# * Determine if an in-memory database is being used.
# *
# * @return bool'
- name: restoreInMemoryDatabase
visibility: protected
parameters: []
comment: '# * Restore the in-memory database between tests.
# *
# * @return void'
- name: refreshTestDatabase
visibility: protected
parameters: []
comment: '# * Refresh a conventional test database.
# *
# * @return void'
- name: beginDatabaseTransaction
visibility: public
parameters: []
comment: '# * Begin a database transaction on the testing database.
# *
# * @return void'
- name: connectionsToTransact
visibility: protected
parameters: []
comment: '# * The database connections that should have transactions.
# *
# * @return array'
- name: beforeRefreshingDatabase
visibility: protected
parameters: []
comment: '# * Perform any work that should take place before the database has started
refreshing.
# *
# * @return void'
- name: afterRefreshingDatabase
visibility: protected
parameters: []
comment: '# * Perform any work that should take place once the database has finished
refreshing.
# *
# * @return void'
traits:
- Illuminate\Contracts\Console\Kernel
- Illuminate\Foundation\Testing\Traits\CanConfigureMigrationCommands
- CanConfigureMigrationCommands
interfaces: []