mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 05:43:45 +02:00
Update calls to missing function
This commit is contained in:
@@ -49,7 +49,7 @@ class DisableTwoFactorCommandTest extends CommandTestCase
|
||||
|
||||
$this->repository->shouldReceive('setColumns')->with(['id', 'email'])->once()->andReturnSelf()
|
||||
->shouldReceive('findFirstWhere')->with([['email', '=', $user->email]])->once()->andReturn($user);
|
||||
$this->repository->shouldReceive('withoutFresh')->withNoArgs()->once()->andReturnSelf()
|
||||
$this->repository->shouldReceive('withoutFreshModel')->withNoArgs()->once()->andReturnSelf()
|
||||
->shouldReceive('update')->with($user->id, [
|
||||
'use_totp' => false,
|
||||
'totp_secret' => null,
|
||||
@@ -70,7 +70,7 @@ class DisableTwoFactorCommandTest extends CommandTestCase
|
||||
|
||||
$this->repository->shouldReceive('setColumns')->with(['id', 'email'])->once()->andReturnSelf()
|
||||
->shouldReceive('findFirstWhere')->with([['email', '=', $user->email]])->once()->andReturn($user);
|
||||
$this->repository->shouldReceive('withoutFresh')->withNoArgs()->once()->andReturnSelf()
|
||||
$this->repository->shouldReceive('withoutFreshModel')->withNoArgs()->once()->andReturnSelf()
|
||||
->shouldReceive('update')->with($user->id, [
|
||||
'use_totp' => false,
|
||||
'totp_secret' => null,
|
||||
|
||||
Reference in New Issue
Block a user