Skip to content

Commit d629cd4

Browse files
committed
test: add test for registation with no email login
1 parent fb40453 commit d629cd4

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/Controllers/RegisterTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,16 @@ public function testRegisterActionSuccess(): void
8282
$this->assertTrue($user->active);
8383
}
8484

85+
public function testRegisterActionSuccessWithNoEmailLogin(): void
86+
{
87+
/** @var Auth $config */
88+
$config = config('Auth');
89+
// Use `username` for login
90+
$config->validFields = ['username'];
91+
92+
$this->testRegisterActionSuccess();
93+
}
94+
8595
public function testRegisterTooLongPasswordDefault(): void
8696
{
8797
$result = $this->withSession()->post('/register', [

0 commit comments

Comments
 (0)