mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-03-06 03:01:20 +01:00
Fix tests
This commit is contained in:
parent
c00b04e192
commit
d826800985
@ -593,7 +593,8 @@ public function test_authentications_returns_user_entries_only() : void
|
||||
->json('GET', '/api/v1/users/' . $this->user->id . '/authentications')
|
||||
->assertJsonCount(1);
|
||||
|
||||
$this->assertEquals($response->getData()[0]->id, $this->user->id);
|
||||
$userAuthLog = AuthLog::find($response->getData()[0]->id);
|
||||
$this->assertEquals($userAuthLog->authenticatable_id, $this->user->id);
|
||||
}
|
||||
|
||||
#[Test]
|
||||
|
File diff suppressed because one or more lines are too long
@ -144,6 +144,7 @@ public function test_get_float_setting_returns_float()
|
||||
public function test_all_returns_default_and_overloaded_settings()
|
||||
{
|
||||
$default_options = config('2fauth.settings');
|
||||
unset($default_options['lastRadarScan']);
|
||||
|
||||
Settings::set(self::SETTING_NAME, self::SETTING_VALUE_STRING);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user