From 011d662dfcb561b71857de07ca2538851a5af2c2 Mon Sep 17 00:00:00 2001 From: fs Date: Thu, 19 Mar 2026 20:17:11 +0100 Subject: [PATCH] Drop redundant crypto gateway tests --- tests/Service/Auth/AuthCryptoGatewayTest.php | 34 ------------------- .../Settings/SettingsCryptoGatewayTest.php | 32 ----------------- 2 files changed, 66 deletions(-) delete mode 100644 tests/Service/Auth/AuthCryptoGatewayTest.php delete mode 100644 tests/Service/Settings/SettingsCryptoGatewayTest.php diff --git a/tests/Service/Auth/AuthCryptoGatewayTest.php b/tests/Service/Auth/AuthCryptoGatewayTest.php deleted file mode 100644 index e1e9c77..0000000 --- a/tests/Service/Auth/AuthCryptoGatewayTest.php +++ /dev/null @@ -1,34 +0,0 @@ -gateway = new AuthCryptoGateway(); - } - - public function testIsConfiguredReturnsTrueWhenKeyIsSet(): void - { - self::assertTrue($this->gateway->isConfigured()); - } - - public function testEncryptDecryptDelegatesToCrypto(): void - { - $plaintext = 'auth-secret'; - $encrypted = $this->gateway->encryptString($plaintext); - - self::assertNotSame($plaintext, $encrypted); - self::assertSame($plaintext, $this->gateway->decryptString($encrypted)); - } -} diff --git a/tests/Service/Settings/SettingsCryptoGatewayTest.php b/tests/Service/Settings/SettingsCryptoGatewayTest.php deleted file mode 100644 index b57e72f..0000000 --- a/tests/Service/Settings/SettingsCryptoGatewayTest.php +++ /dev/null @@ -1,32 +0,0 @@ -encryptString($plaintext); - - self::assertNotSame($plaintext, $encrypted); - self::assertSame($plaintext, $gateway->decryptString($encrypted)); - } -}