Skip to content

Commit

Permalink
Add stored workflow exception id to the resource (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
GALCF authored Jan 9, 2025
1 parent 2a96f9f commit 2c4d04d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Resources/StoredWorkflowExceptionResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function toArray($request)
}

return [
"id" => $this->id,
"code" => $code,
"exception" => $exception,
"class" => $this->class,
Expand Down
4 changes: 4 additions & 0 deletions tests/Feature/DashboardWorkflowTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ public function testIndexNone()
'exceptions',
1,
fn (AssertableJson $exception) => $exception
->where(
'id',
fn ($value) => is_string($value) || is_int($value)
)
->whereType('code', 'string')
->whereType('exception', 'string')
->where('class', 'Activity2Class')
Expand Down

0 comments on commit 2c4d04d

Please sign in to comment.