diff --git a/tests/TestCase.php b/tests/TestCase.php index a4d50f2..a7dcc03 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -69,6 +69,12 @@ protected function prepareDatabaseForHasCustomFieldsModel() protected function resetDatabase() { + $schema = $this->app['db']->connection()->getSchemaBuilder(); + + foreach ($schema->getTables() as $table) { + $schema->drop($table['name']); + } + $this->artisan('migrate:fresh'); $this->runMigrationStub(); }