We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b04f156 commit a4722a3Copy full SHA for a4722a3
tests/Integration/Api/Remote/SftpAuthenticationControllerTest.php
@@ -116,14 +116,12 @@ public function testUserIsThrottledIfInvalidCredentialsAreProvided()
116
public function testUserIsNotThrottledIfNoPublicKeyMatches()
117
{
118
for ($i = 0; $i <= 10; ++$i) {
119
- // levemente modificado 2
120
- $publicKey = PrivateKey::c('Ed25519')->getPublicKey()->toString('OpenSSH');
121
-
122
$this->postJson('/api/remote/sftp/auth', [
123
'type' => 'public_key',
124
'username' => $this->getUsername(),
125
- 'password' => $publicKey,
126
- ])->assertForbidden();
+ 'password' => PrivateKey::createKey('Ed25519')->getPublicKey()->toString('OpenSSH'),
+ ])
+ ->assertForbidden();
127
}
128
129
0 commit comments