mirror of
https://github.com/archtechx/tenancy.git
synced 2026-03-21 23:24:03 +00:00
tests: use literal value in auth guard assertion
This commit is contained in:
parent
c48aed9406
commit
20044a878b
1 changed files with 4 additions and 2 deletions
|
|
@ -89,7 +89,8 @@ test('tenant user can be impersonated on a tenant domain', function () {
|
|||
->assertSee('You are logged in as Joe');
|
||||
|
||||
expect(UserImpersonation::isImpersonating())->toBeTrue();
|
||||
expect(session('tenancy_impersonation_guard'))->toBe($token->auth_guard);
|
||||
expect(session('tenancy_impersonation_guard'))->toBe('web');
|
||||
expect($token->auth_guard)->toBe('web');
|
||||
|
||||
// Leave impersonation
|
||||
UserImpersonation::stopImpersonating();
|
||||
|
|
@ -135,7 +136,8 @@ test('tenant user can be impersonated on a tenant path', function () {
|
|||
->assertSee('You are logged in as Joe');
|
||||
|
||||
expect(UserImpersonation::isImpersonating())->toBeTrue();
|
||||
expect(session('tenancy_impersonation_guard'))->toBe($token->auth_guard);
|
||||
expect(session('tenancy_impersonation_guard'))->toBe('web');
|
||||
expect($token->auth_guard)->toBe('web');
|
||||
|
||||
// Leave impersonation
|
||||
UserImpersonation::stopImpersonating();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue