Working on tests

This commit is contained in:
Hillel Coren 2017-07-31 12:48:30 +03:00
parent ecc6fd5bfd
commit 085a7f2c3a

View File

@ -84,9 +84,9 @@ class CheckData extends Command
if (! $this->option('client_id')) { if (! $this->option('client_id')) {
$this->checkOAuth(); $this->checkOAuth();
$this->checkInvitations(); $this->checkInvitations();
$this->checkFailedJobs();
$this->checkAccountData(); $this->checkAccountData();
$this->checkLookupData(); $this->checkLookupData();
$this->checkFailedJobs();
} }
$this->logMessage('Done: ' . strtoupper($this->isValid ? RESULT_SUCCESS : RESULT_FAILURE)); $this->logMessage('Done: ' . strtoupper($this->isValid ? RESULT_SUCCESS : RESULT_FAILURE));
@ -371,8 +371,8 @@ class CheckData extends Command
private function checkFailedJobs() private function checkFailedJobs()
{ {
//$current = config('database.default'); $current = config('database.default');
//config(['database.default' => env('QUEUE_DATABASE')]); config(['database.default' => env('QUEUE_DATABASE')]);
$count = DB::table('failed_jobs')->count(); $count = DB::table('failed_jobs')->count();
@ -382,7 +382,7 @@ class CheckData extends Command
$this->logMessage($count . ' failed jobs'); $this->logMessage($count . ' failed jobs');
//config(['database.default' => $current]); config(['database.default' => $current]);
} }
private function checkBlankInvoiceHistory() private function checkBlankInvoiceHistory()