mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 13:54:34 -04: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;
|
$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);
|
||||||
}
|
}
|
||||||
|
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
|
->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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user