diff --git a/src/Illuminate/Foundation/Testing/DatabaseMigrations.php b/src/Illuminate/Foundation/Testing/DatabaseMigrations.php index 10a3a7300af6..4301c24ad473 100644 --- a/src/Illuminate/Foundation/Testing/DatabaseMigrations.php +++ b/src/Illuminate/Foundation/Testing/DatabaseMigrations.php @@ -16,9 +16,9 @@ trait DatabaseMigrations */ public function runDatabaseMigrations() { - $this->artisan('migrate:fresh', $this->migrateFreshUsing()); - - $this->app[Kernel::class]->setArtisan(null); + $this->beforeRefreshingDatabase(); + $this->refreshTestDatabase(); + $this->afterRefreshingDatabase(); $this->beforeApplicationDestroyed(function () { $this->artisan('migrate:rollback'); @@ -26,4 +26,36 @@ public function runDatabaseMigrations() RefreshDatabaseState::$migrated = false; }); } + + /** + * Refresh a conventional test database. + * + * @return void + */ + protected function refreshTestDatabase() + { + $this->artisan('migrate:fresh', $this->migrateFreshUsing()); + + $this->app[Kernel::class]->setArtisan(null); + } + + /** + * Perform any work that should take place before the database has started refreshing. + * + * @return void + */ + protected function beforeRefreshingDatabase() + { + // ... + } + + /** + * Perform any work that should take place once the database has finished refreshing. + * + * @return void + */ + protected function afterRefreshingDatabase() + { + // ... + } } diff --git a/tests/Integration/Database/DatabaseCustomCastsTest.php b/tests/Integration/Database/DatabaseCustomCastsTest.php index d38936cf7371..044f6ef11f84 100644 --- a/tests/Integration/Database/DatabaseCustomCastsTest.php +++ b/tests/Integration/Database/DatabaseCustomCastsTest.php @@ -13,7 +13,7 @@ class DatabaseCustomCastsTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('test_eloquent_model_with_custom_casts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/DatabaseEloquentBroadcastingTest.php b/tests/Integration/Database/DatabaseEloquentBroadcastingTest.php index 2f9f399d8bd0..f3fb028e7569 100644 --- a/tests/Integration/Database/DatabaseEloquentBroadcastingTest.php +++ b/tests/Integration/Database/DatabaseEloquentBroadcastingTest.php @@ -18,7 +18,7 @@ class DatabaseEloquentBroadcastingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('test_eloquent_broadcasting_users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/DatabaseEloquentModelAttributeCastingTest.php b/tests/Integration/Database/DatabaseEloquentModelAttributeCastingTest.php index a6263a096e91..060031684a0b 100644 --- a/tests/Integration/Database/DatabaseEloquentModelAttributeCastingTest.php +++ b/tests/Integration/Database/DatabaseEloquentModelAttributeCastingTest.php @@ -12,7 +12,7 @@ class DatabaseEloquentModelAttributeCastingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('test_eloquent_model_with_custom_casts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/DatabaseEloquentModelCustomCastingTest.php b/tests/Integration/Database/DatabaseEloquentModelCustomCastingTest.php index 2d578ab3de61..8bbdb68c0271 100644 --- a/tests/Integration/Database/DatabaseEloquentModelCustomCastingTest.php +++ b/tests/Integration/Database/DatabaseEloquentModelCustomCastingTest.php @@ -16,7 +16,7 @@ class DatabaseEloquentModelCustomCastingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('test_eloquent_model_with_custom_casts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentAggregateTest.php b/tests/Integration/Database/EloquentAggregateTest.php index 9d6206c810ce..4c0deb22e00c 100644 --- a/tests/Integration/Database/EloquentAggregateTest.php +++ b/tests/Integration/Database/EloquentAggregateTest.php @@ -8,7 +8,7 @@ class EloquentAggregateTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentBelongsToManyTest.php b/tests/Integration/Database/EloquentBelongsToManyTest.php index 23e6eb518bb7..161fd4908376 100644 --- a/tests/Integration/Database/EloquentBelongsToManyTest.php +++ b/tests/Integration/Database/EloquentBelongsToManyTest.php @@ -22,7 +22,7 @@ protected function tearDown(): void Carbon::setTestNow(null); } - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentBelongsToTest.php b/tests/Integration/Database/EloquentBelongsToTest.php index 984939fdad5b..13492efefb6c 100644 --- a/tests/Integration/Database/EloquentBelongsToTest.php +++ b/tests/Integration/Database/EloquentBelongsToTest.php @@ -10,7 +10,7 @@ class EloquentBelongsToTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentCollectionFreshTest.php b/tests/Integration/Database/EloquentCollectionFreshTest.php index 30acc2597112..23d50a980e3e 100644 --- a/tests/Integration/Database/EloquentCollectionFreshTest.php +++ b/tests/Integration/Database/EloquentCollectionFreshTest.php @@ -9,7 +9,7 @@ class EloquentCollectionFreshTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentCollectionLoadCountTest.php b/tests/Integration/Database/EloquentCollectionLoadCountTest.php index eea30996db73..d6734336e34c 100644 --- a/tests/Integration/Database/EloquentCollectionLoadCountTest.php +++ b/tests/Integration/Database/EloquentCollectionLoadCountTest.php @@ -12,7 +12,7 @@ class EloquentCollectionLoadCountTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentCollectionLoadMissingTest.php b/tests/Integration/Database/EloquentCollectionLoadMissingTest.php index 31e101afec1d..e95d7aca9b41 100644 --- a/tests/Integration/Database/EloquentCollectionLoadMissingTest.php +++ b/tests/Integration/Database/EloquentCollectionLoadMissingTest.php @@ -10,7 +10,7 @@ class EloquentCollectionLoadMissingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentCursorPaginateTest.php b/tests/Integration/Database/EloquentCursorPaginateTest.php index 76a7a806acd9..01fd4b49e8b8 100644 --- a/tests/Integration/Database/EloquentCursorPaginateTest.php +++ b/tests/Integration/Database/EloquentCursorPaginateTest.php @@ -10,7 +10,7 @@ class EloquentCursorPaginateTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('test_posts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentCustomPivotCastTest.php b/tests/Integration/Database/EloquentCustomPivotCastTest.php index 1a116d37eb9d..b5010ad130ff 100644 --- a/tests/Integration/Database/EloquentCustomPivotCastTest.php +++ b/tests/Integration/Database/EloquentCustomPivotCastTest.php @@ -9,7 +9,7 @@ class EloquentCustomPivotCastTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentDeleteTest.php b/tests/Integration/Database/EloquentDeleteTest.php index 07d7ec3903a6..bd0880767a52 100644 --- a/tests/Integration/Database/EloquentDeleteTest.php +++ b/tests/Integration/Database/EloquentDeleteTest.php @@ -11,7 +11,7 @@ class EloquentDeleteTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentHasManyTest.php b/tests/Integration/Database/EloquentHasManyTest.php index ec782d770830..b8add9b8a72e 100644 --- a/tests/Integration/Database/EloquentHasManyTest.php +++ b/tests/Integration/Database/EloquentHasManyTest.php @@ -11,7 +11,7 @@ class EloquentHasManyTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('eloquent_has_many_test_users', function ($table) { $table->id(); diff --git a/tests/Integration/Database/EloquentHasManyThroughTest.php b/tests/Integration/Database/EloquentHasManyThroughTest.php index 608a21126289..6dcdb9b8ae90 100644 --- a/tests/Integration/Database/EloquentHasManyThroughTest.php +++ b/tests/Integration/Database/EloquentHasManyThroughTest.php @@ -12,7 +12,7 @@ class EloquentHasManyThroughTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentHasOneIsTest.php b/tests/Integration/Database/EloquentHasOneIsTest.php index b61dbca0f796..e0672dcd8f73 100644 --- a/tests/Integration/Database/EloquentHasOneIsTest.php +++ b/tests/Integration/Database/EloquentHasOneIsTest.php @@ -9,7 +9,7 @@ class EloquentHasOneIsTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentHasOneOfManyTest.php b/tests/Integration/Database/EloquentHasOneOfManyTest.php index 4be71d3e5da7..c7a1af45dd53 100644 --- a/tests/Integration/Database/EloquentHasOneOfManyTest.php +++ b/tests/Integration/Database/EloquentHasOneOfManyTest.php @@ -10,7 +10,7 @@ class EloquentHasOneOfManyTest extends DatabaseTestCase { public $retrievedLogins; - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function ($table) { $table->id(); diff --git a/tests/Integration/Database/EloquentLazyEagerLoadingTest.php b/tests/Integration/Database/EloquentLazyEagerLoadingTest.php index dc6422daa3a4..3ab54c6ceae5 100644 --- a/tests/Integration/Database/EloquentLazyEagerLoadingTest.php +++ b/tests/Integration/Database/EloquentLazyEagerLoadingTest.php @@ -10,7 +10,7 @@ class EloquentLazyEagerLoadingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('one', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentMassPrunableTest.php b/tests/Integration/Database/EloquentMassPrunableTest.php index 990bd2191482..e3e1c0c36f34 100644 --- a/tests/Integration/Database/EloquentMassPrunableTest.php +++ b/tests/Integration/Database/EloquentMassPrunableTest.php @@ -28,7 +28,7 @@ protected function setUp(): void $container->alias(Dispatcher::class, 'events'); } - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { collect([ 'mass_prunable_test_models', diff --git a/tests/Integration/Database/EloquentModelCustomEventsTest.php b/tests/Integration/Database/EloquentModelCustomEventsTest.php index f214ec40142b..6a85e3379ca4 100644 --- a/tests/Integration/Database/EloquentModelCustomEventsTest.php +++ b/tests/Integration/Database/EloquentModelCustomEventsTest.php @@ -19,7 +19,7 @@ protected function setUp(): void }); } - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('test_model1', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentModelDateCastingTest.php b/tests/Integration/Database/EloquentModelDateCastingTest.php index 71ce224bedc5..1dfa956ae34a 100644 --- a/tests/Integration/Database/EloquentModelDateCastingTest.php +++ b/tests/Integration/Database/EloquentModelDateCastingTest.php @@ -11,7 +11,7 @@ class EloquentModelDateCastingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('test_model1', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentModelDecimalCastingTest.php b/tests/Integration/Database/EloquentModelDecimalCastingTest.php index 5b08124caaa0..105b328b0020 100644 --- a/tests/Integration/Database/EloquentModelDecimalCastingTest.php +++ b/tests/Integration/Database/EloquentModelDecimalCastingTest.php @@ -11,7 +11,7 @@ class EloquentModelDecimalCastingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('test_model1', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentModelEncryptedCastingTest.php b/tests/Integration/Database/EloquentModelEncryptedCastingTest.php index cc9e087cede2..f4a00d3c98ca 100644 --- a/tests/Integration/Database/EloquentModelEncryptedCastingTest.php +++ b/tests/Integration/Database/EloquentModelEncryptedCastingTest.php @@ -27,7 +27,7 @@ protected function setUp(): void Model::$encrypter = null; } - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('encrypted_casts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentModelEnumCastingTest.php b/tests/Integration/Database/EloquentModelEnumCastingTest.php index 411a55d11acb..e948703f3e88 100644 --- a/tests/Integration/Database/EloquentModelEnumCastingTest.php +++ b/tests/Integration/Database/EloquentModelEnumCastingTest.php @@ -13,7 +13,7 @@ class EloquentModelEnumCastingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('enum_casts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentModelHashedCastingTest.php b/tests/Integration/Database/EloquentModelHashedCastingTest.php index 754d66b9a399..9d7bdba74ad7 100644 --- a/tests/Integration/Database/EloquentModelHashedCastingTest.php +++ b/tests/Integration/Database/EloquentModelHashedCastingTest.php @@ -10,7 +10,7 @@ class EloquentModelHashedCastingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('hashed_casts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentModelImmutableDateCastingTest.php b/tests/Integration/Database/EloquentModelImmutableDateCastingTest.php index 5d6a46865a64..5cdff915e94a 100644 --- a/tests/Integration/Database/EloquentModelImmutableDateCastingTest.php +++ b/tests/Integration/Database/EloquentModelImmutableDateCastingTest.php @@ -10,7 +10,7 @@ class EloquentModelImmutableDateCastingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('test_model_immutable', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentModelJsonCastingTest.php b/tests/Integration/Database/EloquentModelJsonCastingTest.php index b81660aa818e..d7bcecf6bc58 100644 --- a/tests/Integration/Database/EloquentModelJsonCastingTest.php +++ b/tests/Integration/Database/EloquentModelJsonCastingTest.php @@ -11,7 +11,7 @@ class EloquentModelJsonCastingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('json_casts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentModelLoadCountTest.php b/tests/Integration/Database/EloquentModelLoadCountTest.php index 121a729f6d03..1024e214b99c 100644 --- a/tests/Integration/Database/EloquentModelLoadCountTest.php +++ b/tests/Integration/Database/EloquentModelLoadCountTest.php @@ -11,7 +11,7 @@ class EloquentModelLoadCountTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('base_models', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentModelLoadMissingTest.php b/tests/Integration/Database/EloquentModelLoadMissingTest.php index d68f3b4a03a3..eb4983b432a1 100644 --- a/tests/Integration/Database/EloquentModelLoadMissingTest.php +++ b/tests/Integration/Database/EloquentModelLoadMissingTest.php @@ -10,7 +10,7 @@ class EloquentModelLoadMissingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentModelRefreshTest.php b/tests/Integration/Database/EloquentModelRefreshTest.php index e51b12bdab3a..4bac91dbfe32 100644 --- a/tests/Integration/Database/EloquentModelRefreshTest.php +++ b/tests/Integration/Database/EloquentModelRefreshTest.php @@ -11,7 +11,7 @@ class EloquentModelRefreshTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentModelStringCastingTest.php b/tests/Integration/Database/EloquentModelStringCastingTest.php index 7ba208f37498..1b173ccd5df0 100644 --- a/tests/Integration/Database/EloquentModelStringCastingTest.php +++ b/tests/Integration/Database/EloquentModelStringCastingTest.php @@ -9,7 +9,7 @@ class EloquentModelStringCastingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('casting_table', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentModelTest.php b/tests/Integration/Database/EloquentModelTest.php index 937a8a7b55c8..d4ad6c207437 100644 --- a/tests/Integration/Database/EloquentModelTest.php +++ b/tests/Integration/Database/EloquentModelTest.php @@ -10,7 +10,7 @@ class EloquentModelTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('test_model1', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentModelWithoutEventsTest.php b/tests/Integration/Database/EloquentModelWithoutEventsTest.php index 07c4e68137ba..b5bc8725aed4 100644 --- a/tests/Integration/Database/EloquentModelWithoutEventsTest.php +++ b/tests/Integration/Database/EloquentModelWithoutEventsTest.php @@ -8,7 +8,7 @@ class EloquentModelWithoutEventsTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('auto_filled_models', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentMorphConstrainTest.php b/tests/Integration/Database/EloquentMorphConstrainTest.php index 0f244b4d096b..b00d39230966 100644 --- a/tests/Integration/Database/EloquentMorphConstrainTest.php +++ b/tests/Integration/Database/EloquentMorphConstrainTest.php @@ -10,7 +10,7 @@ class EloquentMorphConstrainTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentMorphCountEagerLoadingTest.php b/tests/Integration/Database/EloquentMorphCountEagerLoadingTest.php index 2692e23f001c..f16bb18fac23 100644 --- a/tests/Integration/Database/EloquentMorphCountEagerLoadingTest.php +++ b/tests/Integration/Database/EloquentMorphCountEagerLoadingTest.php @@ -10,7 +10,7 @@ class EloquentMorphCountEagerLoadingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('likes', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentMorphCountLazyEagerLoadingTest.php b/tests/Integration/Database/EloquentMorphCountLazyEagerLoadingTest.php index 5ea6faf4621a..6e9640d0bc0f 100644 --- a/tests/Integration/Database/EloquentMorphCountLazyEagerLoadingTest.php +++ b/tests/Integration/Database/EloquentMorphCountLazyEagerLoadingTest.php @@ -9,7 +9,7 @@ class EloquentMorphCountLazyEagerLoadingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('likes', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentMorphEagerLoadingTest.php b/tests/Integration/Database/EloquentMorphEagerLoadingTest.php index 058f981b4b1a..c251f0c105c7 100644 --- a/tests/Integration/Database/EloquentMorphEagerLoadingTest.php +++ b/tests/Integration/Database/EloquentMorphEagerLoadingTest.php @@ -11,7 +11,7 @@ class EloquentMorphEagerLoadingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentMorphLazyEagerLoadingTest.php b/tests/Integration/Database/EloquentMorphLazyEagerLoadingTest.php index 802083ae5c18..d7034e222b06 100644 --- a/tests/Integration/Database/EloquentMorphLazyEagerLoadingTest.php +++ b/tests/Integration/Database/EloquentMorphLazyEagerLoadingTest.php @@ -9,7 +9,7 @@ class EloquentMorphLazyEagerLoadingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentMorphManyTest.php b/tests/Integration/Database/EloquentMorphManyTest.php index ba5b1a589887..b2dff448bba2 100644 --- a/tests/Integration/Database/EloquentMorphManyTest.php +++ b/tests/Integration/Database/EloquentMorphManyTest.php @@ -12,7 +12,7 @@ class EloquentMorphManyTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentMorphOneIsTest.php b/tests/Integration/Database/EloquentMorphOneIsTest.php index c28699a6382e..f15e81aa5fda 100644 --- a/tests/Integration/Database/EloquentMorphOneIsTest.php +++ b/tests/Integration/Database/EloquentMorphOneIsTest.php @@ -9,7 +9,7 @@ class EloquentMorphOneIsTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentMorphToGlobalScopesTest.php b/tests/Integration/Database/EloquentMorphToGlobalScopesTest.php index 6987d55f891e..34071c044627 100644 --- a/tests/Integration/Database/EloquentMorphToGlobalScopesTest.php +++ b/tests/Integration/Database/EloquentMorphToGlobalScopesTest.php @@ -11,7 +11,7 @@ class EloquentMorphToGlobalScopesTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentMorphToIsTest.php b/tests/Integration/Database/EloquentMorphToIsTest.php index 41f80b82879f..152ec850a8a6 100644 --- a/tests/Integration/Database/EloquentMorphToIsTest.php +++ b/tests/Integration/Database/EloquentMorphToIsTest.php @@ -9,7 +9,7 @@ class EloquentMorphToIsTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentMorphToLazyEagerLoadingTest.php b/tests/Integration/Database/EloquentMorphToLazyEagerLoadingTest.php index b6727024853c..ca28006f74db 100644 --- a/tests/Integration/Database/EloquentMorphToLazyEagerLoadingTest.php +++ b/tests/Integration/Database/EloquentMorphToLazyEagerLoadingTest.php @@ -10,7 +10,7 @@ class EloquentMorphToLazyEagerLoadingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentMorphToSelectTest.php b/tests/Integration/Database/EloquentMorphToSelectTest.php index 6b1b736aea7e..3a4cc258e99c 100644 --- a/tests/Integration/Database/EloquentMorphToSelectTest.php +++ b/tests/Integration/Database/EloquentMorphToSelectTest.php @@ -9,7 +9,7 @@ class EloquentMorphToSelectTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentMorphToTouchesTest.php b/tests/Integration/Database/EloquentMorphToTouchesTest.php index a4b4211e62cf..f34f52093e2f 100644 --- a/tests/Integration/Database/EloquentMorphToTouchesTest.php +++ b/tests/Integration/Database/EloquentMorphToTouchesTest.php @@ -10,7 +10,7 @@ class EloquentMorphToTouchesTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentMultiDimensionalArrayEagerLoadingTest.php b/tests/Integration/Database/EloquentMultiDimensionalArrayEagerLoadingTest.php index e18aee10cc66..0f53b3c5e48e 100644 --- a/tests/Integration/Database/EloquentMultiDimensionalArrayEagerLoadingTest.php +++ b/tests/Integration/Database/EloquentMultiDimensionalArrayEagerLoadingTest.php @@ -10,7 +10,7 @@ class EloquentMultiDimensionalArrayEagerLoadingTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentPaginateTest.php b/tests/Integration/Database/EloquentPaginateTest.php index fa7768185e3c..2beade1644dd 100644 --- a/tests/Integration/Database/EloquentPaginateTest.php +++ b/tests/Integration/Database/EloquentPaginateTest.php @@ -8,7 +8,7 @@ class EloquentPaginateTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentPivotEventsTest.php b/tests/Integration/Database/EloquentPivotEventsTest.php index e5463c7cecfc..7a9962982595 100644 --- a/tests/Integration/Database/EloquentPivotEventsTest.php +++ b/tests/Integration/Database/EloquentPivotEventsTest.php @@ -18,7 +18,7 @@ protected function setUp(): void PivotEventsTestCollaborator::$eventsCalled = []; } - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentPivotSerializationTest.php b/tests/Integration/Database/EloquentPivotSerializationTest.php index 00899762b7a0..f308072f6004 100644 --- a/tests/Integration/Database/EloquentPivotSerializationTest.php +++ b/tests/Integration/Database/EloquentPivotSerializationTest.php @@ -12,7 +12,7 @@ class EloquentPivotSerializationTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentPivotTest.php b/tests/Integration/Database/EloquentPivotTest.php index 72bd8a687fdb..2757992f6927 100644 --- a/tests/Integration/Database/EloquentPivotTest.php +++ b/tests/Integration/Database/EloquentPivotTest.php @@ -9,7 +9,7 @@ class EloquentPivotTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentPrunableTest.php b/tests/Integration/Database/EloquentPrunableTest.php index b51c9f1cc350..22f48e9464fc 100644 --- a/tests/Integration/Database/EloquentPrunableTest.php +++ b/tests/Integration/Database/EloquentPrunableTest.php @@ -13,7 +13,7 @@ class EloquentPrunableTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { collect([ 'prunable_test_models', diff --git a/tests/Integration/Database/EloquentPushTest.php b/tests/Integration/Database/EloquentPushTest.php index 090d3bb6c63b..d1406d321b70 100644 --- a/tests/Integration/Database/EloquentPushTest.php +++ b/tests/Integration/Database/EloquentPushTest.php @@ -8,7 +8,7 @@ class EloquentPushTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentStrictLoadingTest.php b/tests/Integration/Database/EloquentStrictLoadingTest.php index d73a1fde0e43..f13f937aa09f 100644 --- a/tests/Integration/Database/EloquentStrictLoadingTest.php +++ b/tests/Integration/Database/EloquentStrictLoadingTest.php @@ -19,7 +19,7 @@ protected function setUp(): void Model::preventLazyLoading(); } - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('test_model1', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentTouchParentWithGlobalScopeTest.php b/tests/Integration/Database/EloquentTouchParentWithGlobalScopeTest.php index 551e568786d0..e29cabb591ee 100644 --- a/tests/Integration/Database/EloquentTouchParentWithGlobalScopeTest.php +++ b/tests/Integration/Database/EloquentTouchParentWithGlobalScopeTest.php @@ -10,7 +10,7 @@ class EloquentTouchParentWithGlobalScopeTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentUniqueStringPrimaryKeysTest.php b/tests/Integration/Database/EloquentUniqueStringPrimaryKeysTest.php index 755152bd6aed..83724b65267d 100644 --- a/tests/Integration/Database/EloquentUniqueStringPrimaryKeysTest.php +++ b/tests/Integration/Database/EloquentUniqueStringPrimaryKeysTest.php @@ -11,7 +11,7 @@ class EloquentUniqueStringPrimaryKeysTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->uuid('id')->primary(); diff --git a/tests/Integration/Database/EloquentUpdateTest.php b/tests/Integration/Database/EloquentUpdateTest.php index d229b129b8a6..68fdc26993a2 100644 --- a/tests/Integration/Database/EloquentUpdateTest.php +++ b/tests/Integration/Database/EloquentUpdateTest.php @@ -10,7 +10,7 @@ class EloquentUpdateTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('test_model1', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentWhereHasMorphTest.php b/tests/Integration/Database/EloquentWhereHasMorphTest.php index 73dffc85cb5f..d319317aaa63 100644 --- a/tests/Integration/Database/EloquentWhereHasMorphTest.php +++ b/tests/Integration/Database/EloquentWhereHasMorphTest.php @@ -12,7 +12,7 @@ class EloquentWhereHasMorphTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentWhereHasTest.php b/tests/Integration/Database/EloquentWhereHasTest.php index 22cfaf5d5a75..9a9d1e03ac70 100644 --- a/tests/Integration/Database/EloquentWhereHasTest.php +++ b/tests/Integration/Database/EloquentWhereHasTest.php @@ -12,7 +12,7 @@ class EloquentWhereHasTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentWhereTest.php b/tests/Integration/Database/EloquentWhereTest.php index 7f3314415c30..ff6c66595086 100644 --- a/tests/Integration/Database/EloquentWhereTest.php +++ b/tests/Integration/Database/EloquentWhereTest.php @@ -12,7 +12,7 @@ class EloquentWhereTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/EloquentWithCountTest.php b/tests/Integration/Database/EloquentWithCountTest.php index 5174177ab0c5..a323652c2b0e 100644 --- a/tests/Integration/Database/EloquentWithCountTest.php +++ b/tests/Integration/Database/EloquentWithCountTest.php @@ -9,7 +9,7 @@ class EloquentWithCountTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('one', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/MySql/DatabaseEloquentMySqlIntegrationTest.php b/tests/Integration/Database/MySql/DatabaseEloquentMySqlIntegrationTest.php index f7eaccdb274b..06d20b57d673 100644 --- a/tests/Integration/Database/MySql/DatabaseEloquentMySqlIntegrationTest.php +++ b/tests/Integration/Database/MySql/DatabaseEloquentMySqlIntegrationTest.php @@ -9,7 +9,7 @@ class DatabaseEloquentMySqlIntegrationTest extends MySqlTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { if (! Schema::hasTable('database_eloquent_mysql_integration_users')) { Schema::create('database_eloquent_mysql_integration_users', function (Blueprint $table) { diff --git a/tests/Integration/Database/MySql/DatabaseMySqlConnectionTest.php b/tests/Integration/Database/MySql/DatabaseMySqlConnectionTest.php index a365157cf924..16b067eac3ca 100644 --- a/tests/Integration/Database/MySql/DatabaseMySqlConnectionTest.php +++ b/tests/Integration/Database/MySql/DatabaseMySqlConnectionTest.php @@ -17,7 +17,7 @@ class DatabaseMySqlConnectionTest extends MySqlTestCase const JSON_COL = 'json_col'; const FLOAT_VAL = 0.2; - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { if (! Schema::hasTable(self::TABLE)) { Schema::create(self::TABLE, function (Blueprint $table) { diff --git a/tests/Integration/Database/MySql/DatabaseMySqlSchemaBuilderAlterTableWithEnumTest.php b/tests/Integration/Database/MySql/DatabaseMySqlSchemaBuilderAlterTableWithEnumTest.php index 18b156dc98da..7c2ed52652c2 100644 --- a/tests/Integration/Database/MySql/DatabaseMySqlSchemaBuilderAlterTableWithEnumTest.php +++ b/tests/Integration/Database/MySql/DatabaseMySqlSchemaBuilderAlterTableWithEnumTest.php @@ -12,7 +12,7 @@ */ class DatabaseMySqlSchemaBuilderAlterTableWithEnumTest extends MySqlTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->integer('id'); diff --git a/tests/Integration/Database/MySql/EloquentCastTest.php b/tests/Integration/Database/MySql/EloquentCastTest.php index 651a1e6711da..c5a67bf7e937 100644 --- a/tests/Integration/Database/MySql/EloquentCastTest.php +++ b/tests/Integration/Database/MySql/EloquentCastTest.php @@ -12,7 +12,7 @@ class EloquentCastTest extends MySqlTestCase { protected $driver = 'mysql'; - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function ($table) { $table->increments('id'); diff --git a/tests/Integration/Database/MySql/FulltextTest.php b/tests/Integration/Database/MySql/FulltextTest.php index a98d0c74b48a..540840953218 100644 --- a/tests/Integration/Database/MySql/FulltextTest.php +++ b/tests/Integration/Database/MySql/FulltextTest.php @@ -12,7 +12,7 @@ */ class FulltextTest extends MySqlTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('articles', function (Blueprint $table) { $table->id('id'); diff --git a/tests/Integration/Database/Postgres/DatabaseEloquentPostgresIntegrationTest.php b/tests/Integration/Database/Postgres/DatabaseEloquentPostgresIntegrationTest.php index d95dca61a0cb..87e0488ea233 100644 --- a/tests/Integration/Database/Postgres/DatabaseEloquentPostgresIntegrationTest.php +++ b/tests/Integration/Database/Postgres/DatabaseEloquentPostgresIntegrationTest.php @@ -9,7 +9,7 @@ class DatabaseEloquentPostgresIntegrationTest extends PostgresTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { if (! Schema::hasTable('database_eloquent_postgres_integration_users')) { Schema::create('database_eloquent_postgres_integration_users', function (Blueprint $table) { diff --git a/tests/Integration/Database/Postgres/DatabasePostgresConnectionTest.php b/tests/Integration/Database/Postgres/DatabasePostgresConnectionTest.php index 41c238787712..408b79dfe09a 100644 --- a/tests/Integration/Database/Postgres/DatabasePostgresConnectionTest.php +++ b/tests/Integration/Database/Postgres/DatabasePostgresConnectionTest.php @@ -12,7 +12,7 @@ */ class DatabasePostgresConnectionTest extends PostgresTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { if (! Schema::hasTable('json_table')) { Schema::create('json_table', function (Blueprint $table) { diff --git a/tests/Integration/Database/Postgres/FulltextTest.php b/tests/Integration/Database/Postgres/FulltextTest.php index 39ddb6837022..1315e101de65 100644 --- a/tests/Integration/Database/Postgres/FulltextTest.php +++ b/tests/Integration/Database/Postgres/FulltextTest.php @@ -12,7 +12,7 @@ */ class FulltextTest extends PostgresTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('articles', function (Blueprint $table) { $table->id('id'); diff --git a/tests/Integration/Database/QueryBuilderTest.php b/tests/Integration/Database/QueryBuilderTest.php index a7f32f42d1e6..98ae0792b212 100644 --- a/tests/Integration/Database/QueryBuilderTest.php +++ b/tests/Integration/Database/QueryBuilderTest.php @@ -12,7 +12,7 @@ class QueryBuilderTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/QueryingWithEnumsTest.php b/tests/Integration/Database/QueryingWithEnumsTest.php index bd528584e5df..923eba19eb65 100644 --- a/tests/Integration/Database/QueryingWithEnumsTest.php +++ b/tests/Integration/Database/QueryingWithEnumsTest.php @@ -10,7 +10,7 @@ class QueryingWithEnumsTest extends DatabaseTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('enum_casts', function (Blueprint $table) { $table->increments('id'); diff --git a/tests/Integration/Database/SqlServer/DatabaseEloquentSqlServerIntegrationTest.php b/tests/Integration/Database/SqlServer/DatabaseEloquentSqlServerIntegrationTest.php index 9098e6608c6c..1a0ccace294a 100644 --- a/tests/Integration/Database/SqlServer/DatabaseEloquentSqlServerIntegrationTest.php +++ b/tests/Integration/Database/SqlServer/DatabaseEloquentSqlServerIntegrationTest.php @@ -9,7 +9,7 @@ class DatabaseEloquentSqlServerIntegrationTest extends SqlServerTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { if (! Schema::hasTable('database_eloquent_sql_server_integration_users')) { Schema::create('database_eloquent_sql_server_integration_users', function (Blueprint $table) { diff --git a/tests/Integration/Database/SqlServer/DatabaseSqlServerConnectionTest.php b/tests/Integration/Database/SqlServer/DatabaseSqlServerConnectionTest.php index 28b27f89f80f..5c3b1725552e 100644 --- a/tests/Integration/Database/SqlServer/DatabaseSqlServerConnectionTest.php +++ b/tests/Integration/Database/SqlServer/DatabaseSqlServerConnectionTest.php @@ -12,7 +12,7 @@ */ class DatabaseSqlServerConnectionTest extends SqlServerTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { if (! Schema::hasTable('json_table')) { Schema::create('json_table', function (Blueprint $table) { diff --git a/tests/Integration/Database/SqlServer/DatabaseSqlServerSchemaBuilderTest.php b/tests/Integration/Database/SqlServer/DatabaseSqlServerSchemaBuilderTest.php index ac7a5373241c..3332983a3342 100644 --- a/tests/Integration/Database/SqlServer/DatabaseSqlServerSchemaBuilderTest.php +++ b/tests/Integration/Database/SqlServer/DatabaseSqlServerSchemaBuilderTest.php @@ -9,7 +9,7 @@ class DatabaseSqlServerSchemaBuilderTest extends SqlServerTestCase { - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->integer('id'); diff --git a/tests/Integration/Database/Sqlite/DatabaseSqliteConnectionTest.php b/tests/Integration/Database/Sqlite/DatabaseSqliteConnectionTest.php index 212ee52be7d8..3068dd920280 100644 --- a/tests/Integration/Database/Sqlite/DatabaseSqliteConnectionTest.php +++ b/tests/Integration/Database/Sqlite/DatabaseSqliteConnectionTest.php @@ -24,7 +24,7 @@ protected function getEnvironmentSetUp($app) ]); } - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { if (! Schema::hasTable('json_table')) { Schema::create('json_table', function (Blueprint $table) { diff --git a/tests/Integration/Database/Sqlite/DatabaseSqliteSchemaBuilderTest.php b/tests/Integration/Database/Sqlite/DatabaseSqliteSchemaBuilderTest.php index 1fd52a7fc3cd..b11e852f0aa7 100644 --- a/tests/Integration/Database/Sqlite/DatabaseSqliteSchemaBuilderTest.php +++ b/tests/Integration/Database/Sqlite/DatabaseSqliteSchemaBuilderTest.php @@ -25,7 +25,7 @@ protected function getEnvironmentSetUp($app) ]); } - protected function defineDatabaseMigrationsAfterDatabaseRefreshed() + protected function afterRefreshingDatabase() { Schema::create('users', function (Blueprint $table) { $table->integer('id');