From 3e2c3529668b1df501f94140e3e788e64bb7fb96 Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Thu, 3 Apr 2025 13:25:11 -0400 Subject: [PATCH] PHPLIB-1660: Remove redundant CSFLE checks skipIfClientSideEncryptionIsNotSupported() already checks for crypt_shared and mongocryptd (since 28f6ee8d37a4649264e1ac748a452a935e8683a3). --- tests/Operation/CreateEncryptedCollectionFunctionalTest.php | 4 ---- tests/SpecTests/ClientSideEncryption/FunctionalTestCase.php | 4 ---- 2 files changed, 8 deletions(-) diff --git a/tests/Operation/CreateEncryptedCollectionFunctionalTest.php b/tests/Operation/CreateEncryptedCollectionFunctionalTest.php index 69381620c..7c0cb644f 100644 --- a/tests/Operation/CreateEncryptedCollectionFunctionalTest.php +++ b/tests/Operation/CreateEncryptedCollectionFunctionalTest.php @@ -27,10 +27,6 @@ public function setUp(): void $this->skipIfClientSideEncryptionIsNotSupported(); - if (! static::isCryptSharedLibAvailable() && ! static::isMongocryptdAvailable()) { - $this->markTestSkipped('Neither crypt_shared nor mongocryptd are available'); - } - if ($this->isStandalone()) { $this->markTestSkipped('Queryable Encryption requires replica sets'); } diff --git a/tests/SpecTests/ClientSideEncryption/FunctionalTestCase.php b/tests/SpecTests/ClientSideEncryption/FunctionalTestCase.php index 8290e8e8b..71648a853 100644 --- a/tests/SpecTests/ClientSideEncryption/FunctionalTestCase.php +++ b/tests/SpecTests/ClientSideEncryption/FunctionalTestCase.php @@ -25,10 +25,6 @@ public function setUp(): void parent::setUp(); $this->skipIfClientSideEncryptionIsNotSupported(); - - if (! static::isCryptSharedLibAvailable() && ! static::isMongocryptdAvailable()) { - $this->markTestSkipped('Neither crypt_shared nor mongocryptd are available'); - } } public static function createTestClient(?string $uri = null, array $options = [], array $driverOptions = []): Client