Skip to content

Commit fbf9048

Browse files
author
jiannei
committed
fix: 测试用例
1 parent 46121ee commit fbf9048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/FailTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function testFailOutController()
109109
'code' => ResponseCodeEnum::SYSTEM_ERROR,
110110
'message' => ResponseCodeEnum::fromValue(ResponseCodeEnum::SYSTEM_ERROR)->description,
111111
'data' => (object) [],
112-
'error' => config('app.debug', false) ? $this->convertExceptionToArray($httpException) : [],
112+
'error' => config('app.debug', false) ? $this->convertExceptionToArray($httpException) : (object)[],
113113
], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
114114

115115
$this->assertJsonStringEqualsJsonString($expectedJson, $response->getContent());

0 commit comments

Comments
 (0)