Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jul 30, 2024
1 parent e908dd6 commit ea61cff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/XML/EncryptedCustomTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit ea61cff

Please sign in to comment.