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()); } }