File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 DB_USERNAME : root
1515 DB_PASSWORD : password
1616 BROADCAST_DRIVER : log
17+ MAIL_MAILER : log
1718 # CACHE_DRIVER: redis
1819 # QUEUE_CONNECTION: redis
1920 # SESSION_DRIVER: redis
9495 runs-on : ubuntu-latest
9596 env :
9697 BROADCAST_DRIVER : log
98+ MAIL_MAILER : log
9799 # CACHE_DRIVER: redis
98100 # QUEUE_CONNECTION: redis
99101 # SESSION_DRIVER: redis
Original file line number Diff line number Diff line change 22
33use App \Models \Flight ;
44use App \Models \User ;
5+ use App \Notifications \BookingDeleted ;
56use Tests \TestCase ;
7+ use Illuminate \Support \Facades \Mail ;
68
79it ('allows an admin to delete a booking with a user ' , function (): void {
810 /** @var TestCase $this */
911
12+ Mail::fake ();
13+
1014 /** @var User $admin */
1115 $ admin = User::factory ()->admin ()->create ();
1216
3236it ('allows an admin to delete a booking without a user ' , function (): void {
3337 /** @var TestCase $this */
3438
39+ Mail::fake ();
40+
3541 /** @var User $admin */
3642 $ admin = User::factory ()->admin ()->create ();
3743
You can’t perform that action at this time.
0 commit comments