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'); /* |--------------------------------------------------------------------------