Skip to content

Commit 2cefbbd

Browse files
authored
[11.x] Test Improvements (#52122)
fixes tests from f5f9383 commit Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
1 parent 60d780f commit 2cefbbd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Integration/Generators/JobMakeCommandTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public function testItCanGenerateJobFile()
2222
'use Illuminate\Queue\InteractsWithQueue;',
2323
'use Illuminate\Queue\SerializesModels;',
2424
'class FooCreated implements ShouldQueue',
25+
'use Queueable;',
2526
], 'app/Jobs/FooCreated.php');
2627

2728
$this->assertFilenameNotExists('tests/Feature/Jobs/FooCreatedTest.php');
@@ -36,10 +37,12 @@ public function testItCanGenerateSyncJobFile()
3637
'namespace App\Jobs;',
3738
'use Illuminate\Foundation\Bus\Dispatchable;',
3839
'class FooCreated',
40+
'use Dispatchable;',
3941
], 'app/Jobs/FooCreated.php');
4042

4143
$this->assertFileNotContains([
4244
'use Illuminate\Contracts\Queue\ShouldQueue;',
45+
'use Illuminate\Foundation\Queue\Queueable;',
4346
'use Illuminate\Queue\InteractsWithQueue;',
4447
'use Illuminate\Queue\SerializesModels;',
4548
], 'app/Jobs/FooCreated.php');

0 commit comments

Comments
 (0)