mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
135 - Unit Testing the Job
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
namespace App\Jobs;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use App\Mail\AttendeeMessageEmail;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
@@ -31,6 +33,8 @@ class SendAttendeeMessage implements ShouldQueue
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
//
|
||||
$this->attendeeMessage->recipients()->each(function ($recipient) {
|
||||
Mail::to($recipient)->send(new AttendeeMessageEmail($this->attendeeMessage));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user