mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-05-31 07:16:15 +02:00
Fix notification tests
This commit is contained in:
parent
6458501e51
commit
be3aaf319c
@ -84,6 +84,9 @@ class LoginTest extends FeatureTestCase
|
|||||||
{
|
{
|
||||||
Notification::fake();
|
Notification::fake();
|
||||||
|
|
||||||
|
$this->user['preferences->notifyOnNewAuthDevice'] = 1;
|
||||||
|
$this->user->save();
|
||||||
|
|
||||||
$this->json('POST', '/user/login', [
|
$this->json('POST', '/user/login', [
|
||||||
'email' => $this->user->email,
|
'email' => $this->user->email,
|
||||||
'password' => self::PASSWORD,
|
'password' => self::PASSWORD,
|
||||||
@ -235,6 +238,9 @@ class LoginTest extends FeatureTestCase
|
|||||||
{
|
{
|
||||||
Notification::fake();
|
Notification::fake();
|
||||||
|
|
||||||
|
$this->user['preferences->notifyOnFailedLogin'] = 1;
|
||||||
|
$this->user->save();
|
||||||
|
|
||||||
$this->json('POST', '/user/login', [
|
$this->json('POST', '/user/login', [
|
||||||
'email' => $this->user->email,
|
'email' => $this->user->email,
|
||||||
'password' => self::WRONG_PASSWORD,
|
'password' => self::WRONG_PASSWORD,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user