From 166de1e88ab152b7477df30ec6b5676024d8c05b Mon Sep 17 00:00:00 2001 From: Sergio Peris Date: Thu, 29 Feb 2024 12:13:31 +0100 Subject: [PATCH] Missing migrations load (#2) --- src/CounterServiceProvider.php | 3 +++ tests/TestCase.php | 9 --------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/CounterServiceProvider.php b/src/CounterServiceProvider.php index 888c147..7cd730a 100644 --- a/src/CounterServiceProvider.php +++ b/src/CounterServiceProvider.php @@ -17,6 +17,9 @@ public function boot(): void $this->publishes([ dirname(__DIR__).'/config/counters.php' => $this->app->configPath('counters.php'), ], 'counters-config'); + + /** Load migrations */ + $this->loadMigrationsFrom(dirname(__DIR__).'/database/migrations'); } } diff --git a/tests/TestCase.php b/tests/TestCase.php index f932ce1..836922f 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -10,15 +10,6 @@ class TestCase extends Orchestra { use RefreshDatabase; - /** - * Define database migrations. - */ - protected function defineDatabaseMigrations(): void - { - $this->loadLaravelMigrations(); - $this->loadMigrationsFrom(dirname(__DIR__).'/database/migrations'); - } - /** * Get package providers. *