InteractsWithMigrations
trait InteractsWithMigrations
| internal |
Properties
| protected MigrateProcessor> | $cachedTestMigratorProcessors | List of cached migrators instances. |
Methods
Setup the test environment.
Teardown the test environment.
Define hooks to migrate the database before and after each test.
Determine whether migration paths should be registered for an upcoming migration.
Resolve Package Migrations Artisan command options.
Migrate Hypervel's default migrations.
Migrate all Hypervel migrations.
Resolve Hypervel Migrations Artisan command options.
Run and retain a migration processor for teardown.
Determine whether the active database concerns retain in-memory state.
Details
at line 39
protected void
setUpInteractsWithMigrations()
Setup the test environment.
at line 51
protected void
tearDownInteractsWithMigrations()
Teardown the test environment.
at line 95
protected void
loadMigrationsFrom(array|string $paths)
Define hooks to migrate the database before and after each test.
at line 116
protected bool
shouldRegisterMigrationPaths()
Determine whether migration paths should be registered for an upcoming migration.
at line 152
protected array
resolvePackageMigrationsOptions(array|string $paths = [])
| internal |
Resolve Package Migrations Artisan command options.
at line 172
protected void
loadHypervelMigrations(array|string $database = [])
Migrate Hypervel's default migrations.
at line 191
protected void
runHypervelMigrations(array|string $database = [])
Migrate all Hypervel migrations.
at line 207
protected array
resolveHypervelMigrationsOptions(array|string $database = [])
| internal |
Resolve Hypervel Migrations Artisan command options.
at line 217
protected void
runMigrationProcessor(Application $app, array $options)
Run and retain a migration processor for teardown.
at line 245
protected bool
usesInMemoryDatabaseForMigrationState()
Determine whether the active database concerns retain in-memory state.
at line 267
protected void
resetApplicationArtisanCommands(Application $app)
| internal |
Reset artisan commands for the application.