From 040233bcaaa9c74110837b96da8ccbe7d82ec6cc Mon Sep 17 00:00:00 2001 From: lukinovec Date: Wed, 11 Jun 2025 12:46:31 +0200 Subject: [PATCH] Provide more info in comment --- tests/RequestDataIdentificationTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/RequestDataIdentificationTest.php b/tests/RequestDataIdentificationTest.php index 69692ccc..63940ed5 100644 --- a/tests/RequestDataIdentificationTest.php +++ b/tests/RequestDataIdentificationTest.php @@ -89,7 +89,7 @@ test('cookie identification works', function (string|null $tenantModelColumn) { // Default cookie name $this->withoutExceptionHandling()->withUnencryptedCookie('tenant', $payload)->get('test')->assertSee($tenant->id); - // Encrypted cookie (encrypt cookie like MakesHttpRequests does) + // Manually encrypted cookie (encrypt the cookie exactly like MakesHttpRequests does in prepareCookiesForRequest()) $encryptedPayload = encrypt(CookieValuePrefix::create('tenant', app('encrypter')->getKey()) . $payload, false); $this->withoutExceptionHandling()->withUnencryptedCookie('tenant', $encryptedPayload)->get('test')->assertSee($tenant->id);