Skip to content

Commit

Permalink
chore: fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit-canyon authored and github-actions[bot] committed Jan 22, 2025
1 parent 2393569 commit e986528
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,15 @@ public function table(Table $table): Table
->preload(),
SelectFilter::make('status')
->relationship('status', 'name')
->default(fn () => ServiceRequestStatus::query()
->where(
'classification',
'!=',
SystemServiceRequestClassification::Closed
)
->pluck('id')
->toArray()
->default(
fn () => ServiceRequestStatus::query()
->where(
'classification',
'!=',
SystemServiceRequestClassification::Closed
)
->pluck('id')
->toArray()
)
->multiple()
->preload(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,23 +320,24 @@
->assertCanNotSeeTableRecords([$assignedRequest]);
});

it('default non closed service request will not display',function(){
it('default non closed service request will not display', function () {
$nonClosedServiceRequests = ServiceRequest::factory()
->for(
ServiceRequestStatus::factory()
->state(['classification' => SystemServiceRequestClassification::Open]),'status'
)
->count(3)
->create();

->for(
ServiceRequestStatus::factory()
->state(['classification' => SystemServiceRequestClassification::Open]),
'status'
)
->count(3)
->create();

$closedServiceRequests = ServiceRequest::factory()
->for(
ServiceRequestStatus::factory()
->state(['classification' => SystemServiceRequestClassification::Closed]),'status'
)
->count(3)
->create();
->for(
ServiceRequestStatus::factory()
->state(['classification' => SystemServiceRequestClassification::Closed]),
'status'
)
->count(3)
->create();

asSuperAdmin();

Expand Down

0 comments on commit e986528

Please sign in to comment.