Skip to content

Commit a22634d

Browse files
committed
test: fix seeInDatabase() values.
The DB column type is integer.
1 parent 4c638a9 commit a22634d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Controllers/LoginTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function testLoginActionEmailSuccess(): void
8585
$this->seeInDatabase('auth_logins', [
8686
'identifier' => 'foo@example.com',
8787
'user_id' => $this->user->id,
88-
'success' => true,
88+
'success' => 1,
8989
]);
9090
// Last Used date should have been set
9191
$identity = $this->user->getEmailIdentity();
@@ -147,7 +147,7 @@ public function testLoginActionUsernameSuccess(): void
147147
$this->seeInDatabase('auth_logins', [
148148
'identifier' => $this->user->username,
149149
'user_id' => $this->user->id,
150-
'success' => true,
150+
'success' => 1,
151151
]);
152152
// Last Used date should have been set
153153
$identity = $this->user->getEmailIdentity();

0 commit comments

Comments
 (0)