We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f77f12 commit 494be43Copy full SHA for 494be43
tests/Unit/UserModelTest.php
@@ -45,6 +45,20 @@ public function testSaveInsertUser(): void
45
]);
46
}
47
48
+ /**
49
+ * @see https://github.com/codeigniter4/shield/issues/546
50
+ */
51
+ public function testfindByCredentialsEmailEmptyString(): void
52
+ {
53
+ $users = $this->createUserModel();
54
+ $user = $this->createNewUser();
55
+ $users->save($user);
56
+
57
+ $user = $users->findByCredentials(['email' => '']);
58
59
+ $this->assertNull($user);
60
+ }
61
62
public function testInsertUserObject(): void
63
{
64
$users = $this->createUserModel();
0 commit comments