fix tests, finally. i hope. cleanup before laravel 5.5 update
This commit is contained in:
parent
ae381d9908
commit
1502e0193f
@ -113,6 +113,9 @@
|
||||
<path value="$PROJECT_DIR$/vendor/doctrine/common" />
|
||||
<path value="$PROJECT_DIR$/vendor/doctrine/collections" />
|
||||
<path value="$PROJECT_DIR$/vendor/doctrine/cache" />
|
||||
<path value="$PROJECT_DIR$/vendor/hashids/hashids" />
|
||||
<path value="$PROJECT_DIR$/vendor/makinacorpus/php-bloom" />
|
||||
<path value="$PROJECT_DIR$/vendor/paragonie/sodium_compat" />
|
||||
</include_path>
|
||||
</component>
|
||||
<component name="PhpProjectServersManager">
|
||||
|
@ -15,8 +15,11 @@ trait Uuids
|
||||
$key = $model->getKeyName();
|
||||
|
||||
if (empty($model->{$key})) {
|
||||
$hashids = new Hashids('', 8);
|
||||
$id = $hashids->encode((int)microtime(true));
|
||||
$hashids = new Hashids('', 10);
|
||||
|
||||
$mt = str_replace('.', '', microtime(true));
|
||||
|
||||
$id = $hashids->encode($mt);
|
||||
$model->{$key} = $id;
|
||||
}
|
||||
});
|
||||
|
@ -126,6 +126,8 @@ class PIREPService extends BaseService
|
||||
$pirep->save();
|
||||
$pirep->refresh();
|
||||
|
||||
$this->setPilotState($pirep);
|
||||
|
||||
return $pirep;
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,8 @@
|
||||
"composer/semver": "^1.4",
|
||||
"dg/rss-php": "^1.2",
|
||||
"makinacorpus/php-bloom": "dev-master",
|
||||
"hashids/hashids": "2.0.*"
|
||||
"hashids/hashids": "2.0.*",
|
||||
"paragonie/sodium_compat": "^1.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"fzaninotto/faker": "~1.4",
|
||||
|
580
composer.lock
generated
580
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -13,10 +13,13 @@
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/dbal" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/dompdf/dompdf" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/ellipsesynergie/api-response" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/hashids/hashids" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/jeremeamia/SuperClosure" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/league/fractal" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/maatwebsite/excel" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/makinacorpus/php-bloom" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/nikic/php-parser" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/paragonie/sodium_compat" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/phenx/php-font-lib" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/phenx/php-svg-lib" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/phpoffice/phpexcel" />
|
||||
@ -52,10 +55,13 @@
|
||||
<root url="file://$MODULE_DIR$/vendor/doctrine/dbal" />
|
||||
<root url="file://$MODULE_DIR$/vendor/dompdf/dompdf" />
|
||||
<root url="file://$MODULE_DIR$/vendor/ellipsesynergie/api-response" />
|
||||
<root url="file://$MODULE_DIR$/vendor/hashids/hashids" />
|
||||
<root url="file://$MODULE_DIR$/vendor/jeremeamia/SuperClosure" />
|
||||
<root url="file://$MODULE_DIR$/vendor/league/fractal" />
|
||||
<root url="file://$MODULE_DIR$/vendor/maatwebsite/excel" />
|
||||
<root url="file://$MODULE_DIR$/vendor/makinacorpus/php-bloom" />
|
||||
<root url="file://$MODULE_DIR$/vendor/nikic/php-parser" />
|
||||
<root url="file://$MODULE_DIR$/vendor/paragonie/sodium_compat" />
|
||||
<root url="file://$MODULE_DIR$/vendor/phenx/php-font-lib" />
|
||||
<root url="file://$MODULE_DIR$/vendor/phenx/php-svg-lib" />
|
||||
<root url="file://$MODULE_DIR$/vendor/phpoffice/phpexcel" />
|
||||
@ -78,10 +84,13 @@
|
||||
<root url="file://$MODULE_DIR$/vendor/doctrine/dbal" />
|
||||
<root url="file://$MODULE_DIR$/vendor/dompdf/dompdf" />
|
||||
<root url="file://$MODULE_DIR$/vendor/ellipsesynergie/api-response" />
|
||||
<root url="file://$MODULE_DIR$/vendor/hashids/hashids" />
|
||||
<root url="file://$MODULE_DIR$/vendor/jeremeamia/SuperClosure" />
|
||||
<root url="file://$MODULE_DIR$/vendor/league/fractal" />
|
||||
<root url="file://$MODULE_DIR$/vendor/maatwebsite/excel" />
|
||||
<root url="file://$MODULE_DIR$/vendor/makinacorpus/php-bloom" />
|
||||
<root url="file://$MODULE_DIR$/vendor/nikic/php-parser" />
|
||||
<root url="file://$MODULE_DIR$/vendor/paragonie/sodium_compat" />
|
||||
<root url="file://$MODULE_DIR$/vendor/phenx/php-font-lib" />
|
||||
<root url="file://$MODULE_DIR$/vendor/phenx/php-svg-lib" />
|
||||
<root url="file://$MODULE_DIR$/vendor/phpoffice/phpexcel" />
|
||||
|
@ -21,7 +21,6 @@ class PIREPTest extends TestCase
|
||||
'dpt_airport_id' => 1,
|
||||
'arr_airport_id' => 2,
|
||||
'flight_time' => 21600, # 6 hours
|
||||
'level' => 320,
|
||||
'source' => 0, # manual
|
||||
'fuel_used' => 100,
|
||||
'notes' => 'just a pilot report',
|
||||
|
Loading…
Reference in New Issue
Block a user