mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-18 02:05:36 +00:00
test: add testRegisterDomainAnonymousUnauthorized
This commit is contained in:
parent
1b141b6b11
commit
b4c1f20d45
@ -27,6 +27,16 @@ final class AutoRegisterDomainProviderTest extends ApiTestCase
|
||||
$this->assertMatchesResourceItemJsonSchema(Domain::class);
|
||||
}
|
||||
|
||||
#[DependsExternal(RDAPServiceTest::class, 'testUpdateRdapServers')]
|
||||
public function testRegisterDomainAnonymousUnauthorized(): void
|
||||
{
|
||||
$client = $this->createClient();
|
||||
$client->request('GET', '/api/domains/example.com');
|
||||
|
||||
$this->assertResponseStatusCodeSame(401);
|
||||
}
|
||||
|
||||
|
||||
#[DependsExternal(RDAPServiceTest::class, 'testUpdateRdapServers')]
|
||||
public function testRegisterDomainAlreadyUpdated(): void
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user