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:
parent
31610560a7
commit
743ff50b82
@ -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);
|
||||
}
|
||||
|
4
tests/ci
4
tests/ci
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user