Skip to content

Commit 381b580

Browse files
committed
Refactor generateUsername method in AuthenticationTest
1 parent 9d92c26 commit 381b580

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Feature/AuthenticationTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ public function testCanSeeNewPasswordForm()
141141
$response->assertStatus( 200 );
142142
}
143143

144-
public function generateUsername($faker, $minLength = 10) {
145-
$username = $faker->userName;
144+
public function generateUsername($minLength = 10) {
145+
$username = $this->faker->userName();
146146
while(strlen($username) < $minLength) {
147-
$username .= $faker->randomLetter;
147+
$username .= $this->faker->randomLetter();
148148
}
149149
return $username;
150150
}

0 commit comments

Comments
 (0)