Fix and enable Subfleet/Fare tests and factories

This commit is contained in:
Nabeel Shahzad
2017-12-13 11:29:14 -06:00
parent 55250b8789
commit ab75ef7cf8
14 changed files with 126 additions and 352 deletions

View File

@@ -0,0 +1,13 @@
<?php
use Faker\Generator as Faker;
$factory->define(App\Models\Fare::class, function (Faker $faker) {
return [
'id' => $faker->unique()->numberBetween(10, 10000),
'code' => $faker->text(5),
'name' => $faker->text(20),
'price' => $faker->randomFloat(2, 100, 1000),
'capacity' => $faker->randomFloat(0, 20, 500),
];
});

View File

@@ -1 +0,0 @@
<?php