From cb73e447f7d42bd36ec25692a3e9a76445bd96d0 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Tue, 30 Jul 2024 23:03:47 +0200 Subject: [PATCH] Fix unit test --- tests/XML/EncryptedCustomTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/XML/EncryptedCustomTest.php b/tests/XML/EncryptedCustomTest.php index e4d868dc..f0f68a0e 100644 --- a/tests/XML/EncryptedCustomTest.php +++ b/tests/XML/EncryptedCustomTest.php @@ -15,7 +15,6 @@ use SimpleSAML\XMLSecurity\Key\PrivateKey; use SimpleSAML\XMLSecurity\Key\PublicKey; use SimpleSAML\XMLSecurity\Key\SymmetricKey; -use SimpleSAML\XMLSecurity\Test\XML\CustomSigned; use SimpleSAML\XMLSecurity\Test\XML\EncryptedCustom; use SimpleSAML\XMLSecurity\TestUtils\PEMCertificatesMock; use SimpleSAML\XMLSecurity\XML\EncryptableElementTrait; @@ -110,7 +109,7 @@ public function testSignatureVerifiesAfterEncryptionAndDecryption(): void $privateKey = PEMCertificatesMock::getPrivateKey(PEMCertificatesMock::SELFSIGNED_PRIVATE_KEY); $signer = (new SignatureAlgorithmFactory())->getAlgorithm( C::SIG_RSA_SHA256, - $privateKey + $privateKey, ); $customSigned->sign($signer); $customSigned = CustomSignable::fromXML($customSigned->toXML());