DatabaseMigratorIntegrationTest extends TestCase
Migrator Tests
Table of Contents
| $connection | string | |
|---|---|---|
| $migrationTable | string | |
| $schema | Builder | |
| $migrator | Migrator | |
| $locator | MigrationLocator | |
| $repository | DatabaseMigrationRepository | |
| setUp() | Setup migration instances used for all tests | void |
| testMigrationRepositoryCreated() | mixed | |
| testBasicMigration() | mixed | |
| testRepository() | mixed | |
| testMigrationsCanBeRolledBack() | mixed | |
| testMigrationsCanBeReset() | mixed | |
| testNoErrorIsThrownWhenNoOutstandingMigrationsExist() | mixed | |
| testNoErrorIsThrownWhenNothingToRollback() | mixed | |
| testPretendUp() | mixed | |
| testPretendRollback() | mixed | |
| testChangeRepositoryAndDeprecatedClass() | mixed | |
| testWithInvalidClass() | mixed | |
| testDependableMigrations() | mixed | |
| testDependableMigrationsWithInstalled() | mixed | |
| testUnfulfillableMigrations() | mixed | |
| testSpecificMigrationCanBeRollback() | mixed | |
| testSpecificMigrationRollbackWithDependencies() | mixed |
Properties
$connection
protected
string
$connection
= 'test_integration'
$migrationTable
protected
string
$migrationTable
= 'migrations'
$schema
protected
Builder
$schema
$migrator
protected
Migrator
$migrator
$locator
protected
MigrationLocator
$locator
$repository
protected
DatabaseMigrationRepository
$repository
Methods
setUp()
Setup migration instances used for all tests
public
setUp(
)
: void
testMigrationRepositoryCreated()
public
testMigrationRepositoryCreated(
)
: mixed
Return values
mixedtestBasicMigration()
public
testBasicMigration(
)
: mixed
Return values
mixedtestRepository()
public
testRepository(
)
: mixed
Return values
mixedtestMigrationsCanBeRolledBack()
public
testMigrationsCanBeRolledBack(
)
: mixed
Return values
mixedtestMigrationsCanBeReset()
public
testMigrationsCanBeReset(
)
: mixed
Return values
mixedtestNoErrorIsThrownWhenNoOutstandingMigrationsExist()
public
testNoErrorIsThrownWhenNoOutstandingMigrationsExist(
)
: mixed
Return values
mixedtestNoErrorIsThrownWhenNothingToRollback()
public
testNoErrorIsThrownWhenNothingToRollback(
)
: mixed
Return values
mixedtestPretendUp()
public
testPretendUp(
)
: mixed
Return values
mixedtestPretendRollback()
public
testPretendRollback(
)
: mixed
Return values
mixedtestChangeRepositoryAndDeprecatedClass()
public
testChangeRepositoryAndDeprecatedClass(
)
: mixed
Return values
mixedtestWithInvalidClass()
public
testWithInvalidClass(
)
: mixed
Return values
mixedtestDependableMigrations()
public
testDependableMigrations(
)
: mixed
Return values
mixedtestDependableMigrationsWithInstalled()
public
testDependableMigrationsWithInstalled(
)
: mixed
Return values
mixedtestUnfulfillableMigrations()
public
testUnfulfillableMigrations(
)
: mixed
Return values
mixedtestSpecificMigrationCanBeRollback()
public
testSpecificMigrationCanBeRollback(
)
: mixed
Return values
mixedtestSpecificMigrationRollbackWithDependencies()
public
testSpecificMigrationRollbackWithDependencies(
)
: mixed