From 41c9c01d87e9df7b67e6279952eecf0855428bf6 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 28 Nov 2022 17:41:50 +1300 Subject: [PATCH] API Stop using deprecated API --- tests/McryptCryptoTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/McryptCryptoTest.php b/tests/McryptCryptoTest.php index 39f7647..248b708 100644 --- a/tests/McryptCryptoTest.php +++ b/tests/McryptCryptoTest.php @@ -4,6 +4,7 @@ use SilverStripe\Dev\SapphireTest; use SilverStripe\HybridSessions\Crypto\McryptCrypto; +use SilverStripe\Dev\Deprecation; /** * @requires extension mcrypt @@ -13,6 +14,9 @@ class McryptCryptoTest extends SapphireTest { public function testIntegrity() { + if (Deprecation::isEnabled()) { + $this->markTestSkipped('Test calls deprecated code'); + } $this->markTestSkipped( 'McryptCrypto is losing zero bytes at the end of messages: ' . 'https://github.com/silverstripe/silverstripe-hybridsessions/issues/53'