From 8fe4b65adf399a5f945021db6c422521408e8093 Mon Sep 17 00:00:00 2001 From: KIKOmanasijev Date: Wed, 11 Jun 2025 12:42:24 +0200 Subject: [PATCH] fix: correct testEncryptAndDecrypt to properly test new functionality --- tests/Support/SupportStringableTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Support/SupportStringableTest.php b/tests/Support/SupportStringableTest.php index cb89ef9447fc..75372df7ef8f 100644 --- a/tests/Support/SupportStringableTest.php +++ b/tests/Support/SupportStringableTest.php @@ -1449,9 +1449,9 @@ public function testEncryptAndDecrypt() $this->container->bind('encrypter', fn () => new Encrypter(str_repeat('b', 16))); - $encrypted = encrypt('foo'); + $encrypted = $this->stringable('foo')->encrypt(); - $this->assertNotSame('foo', $encrypted); - $this->assertSame('foo', decrypt($encrypted)); + $this->assertNotSame('foo', $encrypted->value()); + $this->assertSame('foo', $encrypted->decrypt()->value()); } }