test: add Domain unit tests

This commit is contained in:
Maël Gangloff
2025-09-09 19:43:35 +02:00
parent f07f95d0c3
commit 477bf36893
14 changed files with 558 additions and 392 deletions

View File

@@ -41,7 +41,7 @@ class RegisterDomainCommand extends Command
protected function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);
$ldhName = strtolower(idn_to_ascii($input->getArgument('domain')));
$ldhName = RDAPService::convertToIdn($input->getArgument('domain'));
$force = (bool) $input->getOption('force');
$notif = (bool) $input->getOption('notif');
$domain = $this->domainRepository->findOneBy(['ldhName' => $ldhName]);