toImplement(ShouldQueue::class); }); test('workshop registration email has correct arabic subject', function () { $mailable = new WorkshopRegistrationMail('Test Name', '0599123456', null); expect($mailable->envelope()->subject) ->toBe('تسجيل جديد - ورشة عمل ريادايات نابلس'); }); test('workshop registration email renders full name and contact number without email line', function () { Mail::fake(); $mailable = new WorkshopRegistrationMail('Test Name', '0599123456', null); Mail::to('info@libra.adv.ps')->send($mailable); $rendered = $mailable->render(); expect($rendered) ->toContain('Test Name') ->toContain('0599123456'); Mail::assertQueued(WorkshopRegistrationMail::class, function ($mail) { return ! str_contains($mail->render(), 'البريد الإلكتروني'); }); }); test('workshop registration email renders email address when provided', function () { Mail::fake(); $mailable = new WorkshopRegistrationMail('Test Name', '0599123456', 'test@example.com'); Mail::to('info@libra.adv.ps')->send($mailable); $rendered = $mailable->render(); expect($rendered) ->toContain('Test Name') ->toContain('0599123456') ->toContain('test@example.com'); });