File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed 
tests/Integration/Generators Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff 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 ' );
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments