1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

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;
if(!$this->checkAuthority()){
$input['date_range'] = '';
$input['start_date'] = '';
$input['end_date'] = '';
$input['send_email'] = true;
$input['report_keys'] = [];
$input['document_email_attachment'] = false;
}
// if(!$this->checkAuthority()){
// $input['date_range'] = '';
// $input['start_date'] = '';
// $input['end_date'] = '';
// $input['send_email'] = true;
// $input['report_keys'] = [];
// $input['document_email_attachment'] = false;
// }
$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
->unique() // We only need unique classes
->split((int) getenv('CI_NODE_TOTAL',1)) // Split it into equally sized chunks
->get((int) getenv('CI_NODE_INDEX',1)); // Get the index we need for this instance
->split((int) getenv('CI_NODE_TOTAL')) // Split it into equally sized chunks
->get((int) getenv('CI_NODE_INDEX')); // Get the index we need for this instance
/**
* Run phpunit with a filter: