File tree 2 files changed +11
-12
lines changed
tests/Functional/Listener
2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -64,14 +64,13 @@ public function appendJsonRpcServerErrorsDoc(ServerDocCreatedEvent $event) : voi
64
64
(new ErrorDoc ('Internal error ' , JsonRpcInternalErrorException::CODE ))
65
65
->setDataDoc (
66
66
(new ObjectDoc ())
67
- ->setAllowMissingSibling (false )
67
+ ->setAllowMissingSibling (true )
68
68
->setAllowExtraSibling (false )
69
69
->setRequired (false )
70
- ->addSibling (
71
- (new StringDoc ())
72
- ->setName (JsonRpcInternalErrorException::DATA_PREVIOUS_KEY )
73
- ->setDescription ('Previous error message ' )
74
- )
70
+ ->addSibling ((new ArrayDoc ())->setName ('_class ' ))
71
+ ->addSibling ((new ArrayDoc ())->setName ('_code ' ))
72
+ ->addSibling ((new ArrayDoc ())->setName ('_message ' ))
73
+ ->addSibling ((new ArrayDoc ())->setName ('_trace ' ))
75
74
)
76
75
);
77
76
}
Original file line number Diff line number Diff line change @@ -98,14 +98,14 @@ public function testInternalErrorShouldHaveRightDataDoc()
98
98
$ this ->assertNotNull ($ internalError ->getDataDoc ());
99
99
$ this ->assertEquals (
100
100
(new ObjectDoc ())
101
- ->setAllowMissingSibling (false )
101
+ ->setAllowMissingSibling (true )
102
102
->setAllowExtraSibling (false )
103
103
->setRequired (false )
104
- ->addSibling (
105
- ( new StringDoc ( ))
106
- ->setName (JsonRpcInternalErrorException:: DATA_PREVIOUS_KEY )
107
- -> setDescription ( ' Previous error message ' )
108
- ) ,
104
+ ->addSibling (( new ArrayDoc ())-> setName ( ' _class ' ))
105
+ -> addSibling (( new ArrayDoc ())-> setName ( ' _code ' ))
106
+ -> addSibling (( new ArrayDoc ()) ->setName (' _message ' ) )
107
+ -> addSibling (( new ArrayDoc ())-> setName ( ' _trace ' ) )
108
+ ,
109
109
$ internalError ->getDataDoc ()
110
110
);
111
111
}
You can’t perform that action at this time.
0 commit comments