From 8eb0d56e2753ff1ac8063669ace0bd5fad4582e2 Mon Sep 17 00:00:00 2001 From: Drylian <109999325+drylian@users.noreply.github.com> Date: Thu, 7 Dec 2023 11:19:33 -0300 Subject: [PATCH] test 4 --- .../Api/Remote/SftpAuthenticationControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Integration/Api/Remote/SftpAuthenticationControllerTest.php b/tests/Integration/Api/Remote/SftpAuthenticationControllerTest.php index efdc78f71..879b385a9 100644 --- a/tests/Integration/Api/Remote/SftpAuthenticationControllerTest.php +++ b/tests/Integration/Api/Remote/SftpAuthenticationControllerTest.php @@ -109,7 +109,7 @@ public function testUserIsThrottledIfInvalidCredentialsAreProvided() } } // test - private static function CreateKeys() + private static function createKeys() { return PrivateKey::createKey('Ed25519')->getPublicKey()->toString('OpenSSH'); } @@ -123,7 +123,7 @@ public function testUserIsNotThrottledIfNoPublicKeyMatches() $this->postJson('/api/remote/sftp/auth', [ 'type' => 'public_key', 'username' => $this->getUsername(), - 'password' => CreateKeys(), + 'password' => $this->createKeys(), ]) ->assertForbidden(); }