Trait MigrationsTrait Migrations trait for auto execute migrations during test running.
Additionally running seed command. Seed command based on sonrac/symfony-seed-command
package.
Init property $seed
in your test class for seed execute.
Property is list seed classes.
example |
seeds located by namespace
In test adding property $seeds:
All seeds running in inclusion order. |
---|---|
package |
Default |
bootMigrationsTrait()
Throws |
|
---|
getBinDir() : string
getConsoleCommand() : string
getMigrationCommand() : string
getMigrationsList() : boolean|array
getMigrationTable() : string
getPreCommand() : string
getRollbackMigrationCommand() : string
getSeedClassEnding() : null|string
getSeedCommand() : string
getSeedNamespace() : null|string
isContinueOnFailure() : boolean
rollback() : null|false
runCommand(string $command)
Throws |
|
---|
string
runSeed(string $seed)
setBinDir(string $binDir) : $this
setConsoleCommand(string $consoleCommand) : \sonrac\FCoverage\MigrationsTrait
author |
Donii Sergii doniysa@gmail.com |
---|
string
\sonrac\FCoverage\MigrationsTrait
setContinueOnFailure(boolean $continueOnFailure) : \sonrac\FCoverage\MigrationsTrait
author |
Donii Sergii doniysa@gmail.com |
---|
boolean
\sonrac\FCoverage\MigrationsTrait
setMigrationCommand(string $migrationCommand) : \sonrac\FCoverage\MigrationsTrait
author |
Donii Sergii doniysa@gmail.com |
---|
string
\sonrac\FCoverage\MigrationsTrait
setMigrationTable(string $migrationTable) : \sonrac\FCoverage\MigrationsTrait
author |
Donii Sergii doniysa@gmail.com |
---|
string
\sonrac\FCoverage\MigrationsTrait
setPhpExecutor(string $phpExecutor) : $this
setPreCommand(string $preCommand) : \sonrac\FCoverage\MigrationsTrait
author |
Donii Sergii doniysa@gmail.com |
---|
string
\sonrac\FCoverage\MigrationsTrait
setRollbackMigrationCommand(string $rollbackMigrationCommand) : \sonrac\FCoverage\MigrationsTrait
author |
Donii Sergii doniysa@gmail.com |
---|
string
\sonrac\FCoverage\MigrationsTrait
setSeedClassEnding(null|string $seedClassEnding) : \sonrac\FCoverage\MigrationsTrait
author |
Donii Sergii doniysa@gmail.com |
---|
null|string
\sonrac\FCoverage\MigrationsTrait
setSeedCommand(string $seedCommand) : \sonrac\FCoverage\MigrationsTrait
author |
Donii Sergii doniysa@gmail.com |
---|
string
\sonrac\FCoverage\MigrationsTrait
setSeedNamespace(null|string $seedNamespace) : \sonrac\FCoverage\MigrationsTrait
author |
Donii Sergii doniysa@gmail.com |
---|
null|string
\sonrac\FCoverage\MigrationsTrait
binDir : string
consoleCommand : string
seedNamespace : null|string
seedClassEnding : string|null
migrationTable : string
migrationCommand : string
rollbackMigrationCommand : string
preCommand : string
continueOnFailure : boolean
seedCommand : string