mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 21:24:04 +00:00
Provide more info in comment
This commit is contained in:
parent
593de904d8
commit
040233bcaa
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue