diff --git a/tests/Integration/Api/Remote/SftpAuthenticationControllerTest.php b/tests/Integration/Api/Remote/SftpAuthenticationControllerTest.php index d08b4f167..9e7136a80 100644 --- a/tests/Integration/Api/Remote/SftpAuthenticationControllerTest.php +++ b/tests/Integration/Api/Remote/SftpAuthenticationControllerTest.php @@ -116,14 +116,12 @@ public function testUserIsThrottledIfInvalidCredentialsAreProvided() public function testUserIsNotThrottledIfNoPublicKeyMatches() { for ($i = 0; $i <= 10; ++$i) { - // levemente modificado 2 - $publicKey = PrivateKey::c('Ed25519')->getPublicKey()->toString('OpenSSH'); - $this->postJson('/api/remote/sftp/auth', [ 'type' => 'public_key', 'username' => $this->getUsername(), - 'password' => $publicKey, - ])->assertForbidden(); + 'password' => PrivateKey::createKey('Ed25519')->getPublicKey()->toString('OpenSSH'), + ]) + ->assertForbidden(); } }