Skip to content

Commit

Permalink
[11.x] Test Improvements
Browse files Browse the repository at this point in the history
fixes tests from
f5f9383
commit

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Jul 15, 2024
1 parent 60d780f commit 4909b09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Integration/Generators/JobMakeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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');
Expand Down

0 comments on commit 4909b09

Please sign in to comment.