Today Dane learned about Mockery::subset, tomorrow we take over Canada.

In other news, why could no one have mentioned this a few months ago. Would have been nice.
This commit is contained in:
Dane Everitt 2017-10-04 22:41:15 -05:00
parent 3e689cf212
commit d95a63c09b
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 204 additions and 3 deletions

View file

@ -103,10 +103,11 @@ $factory->define(Pterodactyl\Models\Service::class, function (Faker\Generator $f
$factory->define(Pterodactyl\Models\ServiceOption::class, function (Faker\Generator $faker) {
return [
'id' => $faker->unique()->randomNumber(),
'uuid' => $faker->unique()->uuid,
'service_id' => $faker->unique()->randomNumber(),
'name' => $faker->name,
'description' => implode(' ', $faker->sentences(3)),
'tag' => $faker->unique()->randomNumber(5),
'tag' => 'test@testfactory.com:' . $faker->unique()->randomNumber(8),
];
});
@ -120,8 +121,6 @@ $factory->define(Pterodactyl\Models\ServiceVariable::class, function (Faker\Gene
'user_viewable' => 0,
'user_editable' => 0,
'rules' => 'required|string',
'created_at' => \Carbon\Carbon::now(),
'updated_at' => \Carbon\Carbon::now(),
];
});