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

@@ -203,7 +203,7 @@ class RDAPService
throw new BadRequestException('Domain must contain at least one dot');
}
$tld = strtolower(idn_to_ascii(substr($domain, $lastDotPosition + 1)));
$tld = self::convertToIdn((substr($domain, $lastDotPosition + 1)));
$tldEntity = $this->tldRepository->findOneBy(['tld' => $tld]);
if (null === $tldEntity) {