* [misc] Enhance unit tests for instanceModel::randThirdDomain() method

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
liugang
2025-09-25 09:16:15 +08:00
co-authored by Claude
parent 24950230fe
commit cdad1ca970
2 changed files with 45 additions and 14 deletions
@@ -761,4 +761,20 @@ class instanceTest
return $result;
}
/**
* Test randThirdDomain method.
*
* @param int $length
* @param int $triedTimes
* @access public
* @return string
*/
public function randThirdDomainTest(int $length = 4, int $triedTimes = 0): string
{
$result = $this->objectModel->randThirdDomain($length, $triedTimes);
if(dao::isError()) return dao::getError();
return $result;
}
}