I am trying to assert that an email has been sent from a job that dispatches another job. Though I am unable to assert that an email has been sent.
In laravel I need tot est the following job:
namespace App\Jobs
use App\Jobs\AnotharJob;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
class AJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
//Some logic here
AnotharJob::dispatch();
}
}
In laravel I need tot est the…
Do you know why?