From 968ab822c23d4ff4725b38b849e3eb1df6a8d823 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 19 Apr 2024 00:42:56 +0200 Subject: [PATCH] fix test --- tests/Pest.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/tests/Pest.php b/tests/Pest.php index aa5ea9e..803cccc 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -2,15 +2,6 @@ use App\Services\Smtp\Server; -/* -|-------------------------------------------------------------------------- -| Global hooks -|-------------------------------------------------------------------------- -*/ -uses()->beforeAll(function () { - Server::fake(); -}); - /* |-------------------------------------------------------------------------- | Test Case @@ -25,7 +16,9 @@ uses( Tests\TestCase::class, // Illuminate\Foundation\Testing\RefreshDatabase::class, -)->in('Feature'); +)->beforeAll(function () { + Server::fake(); +})->in('Feature'); /* |--------------------------------------------------------------------------