Skip to content

Commit f717cce

Browse files
fix: correct testEncryptAndDecrypt to properly test new functionality (#55985)
1 parent aa0be9e commit f717cce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Support/SupportStringableTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,9 +1449,9 @@ public function testEncryptAndDecrypt()
14491449

14501450
$this->container->bind('encrypter', fn () => new Encrypter(str_repeat('b', 16)));
14511451

1452-
$encrypted = encrypt('foo');
1452+
$encrypted = $this->stringable('foo')->encrypt();
14531453

1454-
$this->assertNotSame('foo', $encrypted);
1455-
$this->assertSame('foo', decrypt($encrypted));
1454+
$this->assertNotSame('foo', $encrypted->value());
1455+
$this->assertSame('foo', $encrypted->decrypt()->value());
14561456
}
14571457
}

0 commit comments

Comments
 (0)