toBe('resend'); }); it('resolves the resend api key from RESEND_API_KEY', function (): void { putenv('RESEND_API_KEY=test-resend-key'); $_ENV['RESEND_API_KEY'] = 'test-resend-key'; $_SERVER['RESEND_API_KEY'] = 'test-resend-key'; $services = require config_path('services.php'); expect($services['resend']['key'])->toBe('test-resend-key'); }); it('defaults the mailer to log in config when MAIL_MAILER is unset', function (): void { $contents = file_get_contents(config_path('mail.php')); expect($contents)->toContain("env('MAIL_MAILER', 'log')"); });