mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 22:24:03 +00:00
Adopt expectation API
This commit is contained in:
parent
5637018b0d
commit
cef9529d6a
22 changed files with 278 additions and 278 deletions
|
|
@ -171,7 +171,7 @@ test('tokens are deleted after use', function () {
|
|||
->assertSuccessful()
|
||||
->assertSee('You are logged in as Joe');
|
||||
|
||||
$this->assertNull(ImpersonationToken::find($token->token));
|
||||
expect(ImpersonationToken::find($token->token))->toBeNull();
|
||||
});
|
||||
|
||||
test('impersonation works with multiple models and guards', function () {
|
||||
|
|
@ -220,8 +220,8 @@ test('impersonation works with multiple models and guards', function () {
|
|||
->assertSee('You are logged in as Joe');
|
||||
|
||||
Tenant::first()->run(function () {
|
||||
$this->assertSame('Joe', auth()->guard('another')->user()->name);
|
||||
$this->assertSame(null, auth()->guard('web')->user());
|
||||
expect(auth()->guard('another')->user()->name)->toBe('Joe');
|
||||
expect(auth()->guard('web')->user())->toBe(null);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue