Commit 9d92c26 1 parent d93f032 commit 9d92c26 Copy full SHA for 9d92c26
File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -141,9 +141,17 @@ public function testCanSeeNewPasswordForm()
141
141
$ response ->assertStatus ( 200 );
142
142
}
143
143
144
+ public function generateUsername ($ faker , $ minLength = 10 ) {
145
+ $ username = $ faker ->userName ;
146
+ while (strlen ($ username ) < $ minLength ) {
147
+ $ username .= $ faker ->randomLetter ;
148
+ }
149
+ return $ username ;
150
+ }
151
+
144
152
public function testSubmitRegistrationForm ()
145
153
{
146
- $ password = $ this ->faker ->password ();
154
+ $ password = $ this ->faker ->password (8 );
147
155
$ registration_validated = ns ()->option ->get ( 'ns_registration_validated ' , 'yes ' );
148
156
149
157
/**
@@ -152,7 +160,7 @@ public function testSubmitRegistrationForm()
152
160
*/
153
161
ns ()->option ->set ( 'ns_registration_enabled ' , 'yes ' );
154
162
155
- $ username = $ this ->faker -> userName ( );
163
+ $ username = $ this ->generateUsername ( 6 );
156
164
$ email = $ this ->faker ->email ();
157
165
158
166
$ response = $ this
You can’t perform that action at this time.
0 commit comments