From f5e7f58aa4376e505545ac6c330ba3c6bb5d9590 Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Mon, 26 May 2025 16:49:14 +0200 Subject: [PATCH] Use more lax assertion when checking exception message --- tests/SpecTests/ClientSideEncryptionSpecTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SpecTests/ClientSideEncryptionSpecTest.php b/tests/SpecTests/ClientSideEncryptionSpecTest.php index 6923aa750..0a3783354 100644 --- a/tests/SpecTests/ClientSideEncryptionSpecTest.php +++ b/tests/SpecTests/ClientSideEncryptionSpecTest.php @@ -612,7 +612,7 @@ public function testViewsAreProhibited(): void $previous = $e->getPrevious(); $this->assertInstanceOf(EncryptionException::class, $previous); - $this->assertSame('cannot auto encrypt a view', $previous->getMessage()); + $this->assertStringContainsString('cannot auto encrypt a view', $previous->getMessage()); } }