mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
test: add test for Namecheap
This commit is contained in:
@@ -54,6 +54,25 @@ class AbstractProviderTest extends ApiTestCase
|
||||
]);
|
||||
}
|
||||
|
||||
#[DependsExternal(RDAPServiceTest::class, 'testUpdateRdapServers')]
|
||||
public function testNamecheap()
|
||||
{
|
||||
$namecheapUsername = static::getContainer()->getParameter('namecheap_username');
|
||||
$namecheapToken = static::getContainer()->getParameter('namecheap_token');
|
||||
|
||||
if (!$namecheapUsername || !$namecheapToken) {
|
||||
$this->markTestSkipped('Missing Namecheap username or token');
|
||||
}
|
||||
|
||||
$this->testGenericProvider(ConnectorProvider::NAMECHEAP, [
|
||||
'waiveRetractationPeriod' => true,
|
||||
'acceptConditions' => true,
|
||||
'ownerLegalAge' => true,
|
||||
'ApiUser' => $namecheapUsername,
|
||||
'ApiKey' => $namecheapToken,
|
||||
]);
|
||||
}
|
||||
|
||||
private function testGenericProvider(ConnectorProvider $connectorProvider, array $authData): void
|
||||
{
|
||||
// Create a Connector
|
||||
|
||||
Reference in New Issue
Block a user