From 64391f990bad234767d6a4825c84f401d27536b0 Mon Sep 17 00:00:00 2001 From: Hayley Berry Date: Tue, 19 Nov 2024 13:07:09 +0000 Subject: [PATCH] Remove RefreshDatabase trait from tests as tests handle in-package migrations Update github workflow matrix from php 8.0 and 8.1 -> 8.2 only, and add Laravel v10 --- .github/workflows/laravel-report-build-test.yml | 4 ++-- tests/LaravelTestCase.php | 3 --- tests/Unit/Repositories/ScheduledReportRepositoryTest.php | 2 -- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/laravel-report-build-test.yml b/.github/workflows/laravel-report-build-test.yml index 97fdb1d..fc72644 100644 --- a/.github/workflows/laravel-report-build-test.yml +++ b/.github/workflows/laravel-report-build-test.yml @@ -16,8 +16,8 @@ jobs: strategy: fail-fast: true matrix: - php: ["8.0", "8.1"] - laravel: ["^9.0"] + php: ["8.2"] + laravel: ["^9.0", "^10.0"] name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} diff --git a/tests/LaravelTestCase.php b/tests/LaravelTestCase.php index 27ee1b5..a526b90 100644 --- a/tests/LaravelTestCase.php +++ b/tests/LaravelTestCase.php @@ -3,7 +3,6 @@ namespace MBLSolutions\Report\Tests; use Illuminate\Foundation\Application; -use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Collection; use Illuminate\Support\Str; use Maatwebsite\Excel\ExcelServiceProvider; @@ -17,8 +16,6 @@ class LaravelTestCase extends OTBTestCase { - use RefreshDatabase; - /** {@inheritdoc} **/ protected function setUp(): void { diff --git a/tests/Unit/Repositories/ScheduledReportRepositoryTest.php b/tests/Unit/Repositories/ScheduledReportRepositoryTest.php index 5cefe53..e814c23 100644 --- a/tests/Unit/Repositories/ScheduledReportRepositoryTest.php +++ b/tests/Unit/Repositories/ScheduledReportRepositoryTest.php @@ -14,8 +14,6 @@ class ScheduledReportRepositoryTest extends LaravelTestCase { - use RefreshDatabase; - protected ScheduledReportRepository $repository; protected Report $report;