From 7933c5b36d7476d7184eacc7e959a1afe0e8065a Mon Sep 17 00:00:00 2001 From: francoism90 Date: Thu, 31 Oct 2024 17:32:17 +0100 Subject: [PATCH] wip --- tests/Pest.php | 1 - tests/src/Models/Post.php | 2 -- tests/src/TestCase.php | 2 ++ 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/Pest.php b/tests/Pest.php index 527f14f8..adebd5cc 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -6,7 +6,6 @@ ->extend('toBeSameModel', fn (Model $model) => $this->is($model)->toBeTrue()); beforeEach(function () { - // Fake instances \Illuminate\Support\Facades\Bus::fake(); \Illuminate\Support\Facades\Mail::fake(); \Illuminate\Support\Facades\Notification::fake(); diff --git a/tests/src/Models/Post.php b/tests/src/Models/Post.php index e7e10e7c..f02aea49 100644 --- a/tests/src/Models/Post.php +++ b/tests/src/Models/Post.php @@ -6,12 +6,10 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; -use Illuminate\Database\Eloquent\SoftDeletes; class Post extends Model { use HasFactory; - use SoftDeletes; protected $guarded = []; diff --git a/tests/src/TestCase.php b/tests/src/TestCase.php index d65a727c..f7021bfb 100644 --- a/tests/src/TestCase.php +++ b/tests/src/TestCase.php @@ -29,6 +29,8 @@ protected function setUp(): void protected function getEnvironmentSetUp($app) { + $app['config']->set('broadcasting.default', 'log'); + $app['config']->set('cache.default', 'file'); $app['config']->set('database.default', 'sqlite');