From 0a74cb4eae60f06dcd0ebe32ee8f2e913539ea7c Mon Sep 17 00:00:00 2001 From: RenoLooijmans <73367951+RenoLooijmans@users.noreply.github.com> Date: Fri, 19 Sep 2025 16:37:30 +0200 Subject: [PATCH] [FIX] Fix failing tests for ScaffoldingTest --- tests/TestCase.php | 6 ++++++ 1 file changed, 6 insertions(+) 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(); }