From dc33d2cc675ca671050457f4b3ff8f4353bc9da1 Mon Sep 17 00:00:00 2001 From: glenn guan Date: Thu, 6 Jul 2023 12:06:40 +0800 Subject: [PATCH] test: [TestCase] define database migrations --- tests/TestCase.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/TestCase.php b/tests/TestCase.php index c086cfe..7852b14 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -24,6 +24,16 @@ protected function defineEnvironment($app) ]); } + /** + * Define database migrations. + */ + protected function defineDatabaseMigrations(): void + { + $this->loadLaravelMigrations(); + $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); + $this->loadMigrationsFrom(__DIR__ . '/Migrations'); + } + /** * @param \Illuminate\Foundation\Application $app * @return array