From 4909b09c242f469a856e5d81d7ed8ea0e25e9cd2 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 15 Jul 2024 08:58:51 +0800 Subject: [PATCH] [11.x] Test Improvements fixes tests from https://github.com/laravel/framework/commit/f5f9383af919ef74b00eacb23b4a88fcf390743c commit Signed-off-by: Mior Muhammad Zaki --- tests/Integration/Generators/JobMakeCommandTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Integration/Generators/JobMakeCommandTest.php b/tests/Integration/Generators/JobMakeCommandTest.php index 6ba66107a6fe..b1566c796c0c 100644 --- a/tests/Integration/Generators/JobMakeCommandTest.php +++ b/tests/Integration/Generators/JobMakeCommandTest.php @@ -22,6 +22,7 @@ public function testItCanGenerateJobFile() 'use Illuminate\Queue\InteractsWithQueue;', 'use Illuminate\Queue\SerializesModels;', 'class FooCreated implements ShouldQueue', + 'use Queueable;', ], 'app/Jobs/FooCreated.php'); $this->assertFilenameNotExists('tests/Feature/Jobs/FooCreatedTest.php'); @@ -36,10 +37,12 @@ public function testItCanGenerateSyncJobFile() 'namespace App\Jobs;', 'use Illuminate\Foundation\Bus\Dispatchable;', 'class FooCreated', + 'use Dispatchable;', ], 'app/Jobs/FooCreated.php'); $this->assertFileNotContains([ 'use Illuminate\Contracts\Queue\ShouldQueue;', + 'use Illuminate\Foundation\Queue\Queueable;', 'use Illuminate\Queue\InteractsWithQueue;', 'use Illuminate\Queue\SerializesModels;', ], 'app/Jobs/FooCreated.php');