unit test airport id length fix

This commit is contained in:
Nabeel Shahzad 2018-05-07 15:11:59 -05:00
parent 3f1f83438d
commit 00458ee754

View File

@ -11,7 +11,7 @@ $factory->define(App\Models\Airport::class, function (Faker $faker) {
$characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
$string = '';
$max = strlen($characters) - 1;
for ($i = 0; $i < 5; $i++) {
for ($i = 0; $i < 4; $i++) {
$string .= $characters[random_int(0, $max)];
}