Add feature tests for domain order management
- Implement AdminDomainOrderTest to cover admin functionalities for domain orders including listing, confirming registration, KYC updates, activation, rejection, and refunds. - Implement ClientDomainOrderTest to cover client functionalities for placing domain orders, including validation for balance, duplicate orders, and domain normalization. - Ensure proper handling of domain pricing and service statuses throughout the tests.
This commit is contained in:
@@ -52,18 +52,29 @@ class MailConfigServiceProvider extends ServiceProvider
|
||||
$password = $decrypted ?: $mail->password;
|
||||
}
|
||||
|
||||
return [
|
||||
'driver' => $mail->transport ?? 'smtp',
|
||||
$transport = $mail->transport ?? 'smtp';
|
||||
$encryption = $mail->encryption ?? config('mail.mailers.smtp.encryption');
|
||||
|
||||
if ($encryption === 0 || $encryption === '0' || $encryption === 'starttls') {
|
||||
$encryption = 'tls';
|
||||
}
|
||||
|
||||
$config = config('mail');
|
||||
$config['default'] = $transport;
|
||||
$config['from'] = [
|
||||
'address' => $mail->user ?? config('mail.from.address', 'no-reply@example.com'),
|
||||
'name' => $company,
|
||||
];
|
||||
$config['mailers'][$transport] = array_merge($config['mailers'][$transport] ?? [], [
|
||||
'transport' => $transport,
|
||||
'host' => $mail->host ?? '',
|
||||
'port' => $mail->port ?? 587,
|
||||
'from' => [
|
||||
'address' => $mail->user ?? 'no-reply@example.com',
|
||||
'name' => $company,
|
||||
],
|
||||
'encryption' => $mail->encryption === 0 ? 'tls' : $mail->encryption,
|
||||
'encryption' => $encryption,
|
||||
'username' => $mail->user ?? '',
|
||||
'password' => $password,
|
||||
];
|
||||
]);
|
||||
|
||||
return $config;
|
||||
});
|
||||
|
||||
if ($config) {
|
||||
|
||||
Reference in New Issue
Block a user