mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-23 23:49:53 +01:00
Fix phpunit tests
This commit is contained in:
parent
fc13d4faef
commit
a0d6c9ace7
@ -104,7 +104,7 @@ public function testTwoFAccountCreationWithEmptyRequest()
|
||||
'uri' => '',
|
||||
'icon' => '',
|
||||
])
|
||||
->assertStatus(400);
|
||||
->assertStatus(422);
|
||||
}
|
||||
|
||||
|
||||
@ -122,7 +122,7 @@ public function testTwoFAccountCreationWithInvalidTOTP()
|
||||
'uri' => 'invalidTOTP',
|
||||
'icon' => 'test.png',
|
||||
])
|
||||
->assertStatus(400);
|
||||
->assertStatus(422);
|
||||
}
|
||||
|
||||
|
||||
|
@ -110,7 +110,7 @@ public function testUserLoginWithMissingValues()
|
||||
'password' => ''
|
||||
]);
|
||||
|
||||
$response->assertStatus(400);
|
||||
$response->assertStatus(422);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user