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:
baodev0
2026-07-10 14:16:35 +07:00
parent 61c0e026c8
commit dfb926055d
81 changed files with 35743 additions and 481 deletions
+19 -8
View File
@@ -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) {