Skip to content

Commit 44bb6c6

Browse files
committed
Update username length in AuthenticationTest.php
1 parent 6d7d30f commit 44bb6c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Feature/AuthenticationTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function testSubmitRegistrationForm()
160160
*/
161161
ns()->option->set( 'ns_registration_enabled', 'yes' );
162162

163-
$username = $this->generateUsername(6);
163+
$username = $this->generateUsername(10);
164164
$email = $this->faker->email();
165165

166166
$response = $this
@@ -201,7 +201,7 @@ public function testSubmitRegistrationForm()
201201
->withHeader( 'X-CSRF-TOKEN', csrf_token() )
202202
->post(
203203
'/auth/sign-up', [
204-
'username' => $this->faker->userName(),
204+
'username' => $this->generateUsername(10),
205205
'password' => $password,
206206
'password_confirm' => $password,
207207
'email' => 'not-a-valid-email',
@@ -223,7 +223,7 @@ public function testSubmitRegistrationForm()
223223
->withHeader( 'X-CSRF-TOKEN', csrf_token() )
224224
->post(
225225
'/auth/sign-up', [
226-
'username' => $this->faker->userName(),
226+
'username' => $this->generateUsername(10),
227227
'password' => $password,
228228
'password_confirm' => $password . 'not-the-same',
229229
'email' => $this->faker->email(),

0 commit comments

Comments
 (0)