Skip to content

Commit 2c4d04d

Browse files
authored
Add stored workflow exception id to the resource (#33)
1 parent 2a96f9f commit 2c4d04d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app/Http/Resources/StoredWorkflowExceptionResource.php

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function toArray($request)
3838
}
3939

4040
return [
41+
"id" => $this->id,
4142
"code" => $code,
4243
"exception" => $exception,
4344
"class" => $this->class,

tests/Feature/DashboardWorkflowTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ public function testIndexNone()
6161
'exceptions',
6262
1,
6363
fn (AssertableJson $exception) => $exception
64+
->where(
65+
'id',
66+
fn ($value) => is_string($value) || is_int($value)
67+
)
6468
->whereType('code', 'string')
6569
->whereType('exception', 'string')
6670
->where('class', 'Activity2Class')

0 commit comments

Comments
 (0)