From 743ff50b82a9988dff5e0e48f0991436ce9f91fe Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 29 May 2024 23:16:59 +1000 Subject: [PATCH] Tests for tests --- .../Requests/Report/GenericReportRequest.php | 16 ++++++++-------- tests/ci | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/Http/Requests/Report/GenericReportRequest.php b/app/Http/Requests/Report/GenericReportRequest.php index 1ebd60dc4321..7a59becd7e84 100644 --- a/app/Http/Requests/Report/GenericReportRequest.php +++ b/app/Http/Requests/Report/GenericReportRequest.php @@ -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); } diff --git a/tests/ci b/tests/ci index e615230bf1ba..3c097b868a6b 100755 --- a/tests/ci +++ b/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: