Tests for tests

This commit is contained in:
David Bomba 2024-05-29 23:16:59 +10:00
parent 31610560a7
commit 743ff50b82
2 changed files with 10 additions and 10 deletions

View File

@ -68,14 +68,14 @@ class GenericReportRequest extends Request
$input['user_id'] = auth()->user()->id; $input['user_id'] = auth()->user()->id;
if(!$this->checkAuthority()){ // if(!$this->checkAuthority()){
$input['date_range'] = ''; // $input['date_range'] = '';
$input['start_date'] = ''; // $input['start_date'] = '';
$input['end_date'] = ''; // $input['end_date'] = '';
$input['send_email'] = true; // $input['send_email'] = true;
$input['report_keys'] = []; // $input['report_keys'] = [];
$input['document_email_attachment'] = false; // $input['document_email_attachment'] = false;
} // }
$this->replace($input); $this->replace($input);
} }

View File

@ -28,8 +28,8 @@ $tests = \Illuminate\Support\Str::of($process->getOutput())
)) ))
->filter(fn (string $test) => !empty($test)) // Make sure there are no empty lines ->filter(fn (string $test) => !empty($test)) // Make sure there are no empty lines
->unique() // We only need unique classes ->unique() // We only need unique classes
->split((int) getenv('CI_NODE_TOTAL',1)) // Split it into equally sized chunks ->split((int) getenv('CI_NODE_TOTAL')) // Split it into equally sized chunks
->get((int) getenv('CI_NODE_INDEX',1)); // Get the index we need for this instance ->get((int) getenv('CI_NODE_INDEX')); // Get the index we need for this instance
/** /**
* Run phpunit with a filter: * Run phpunit with a filter: