File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class MyResponseHandler implements ResponseHandlerInterface
99 public function getSupportedPayloadTypes (): array
1010 {
1111 return [
12- MyResponseHandler ::class,
12+ MyResponsePayload ::class,
1313 ];
1414 }
1515
Original file line number Diff line number Diff line change 44use Pitch \AdrBundle \Action \ActionProxy ;
55use Pitch \AdrBundle \Fixtures \MyException ;
66use Pitch \AdrBundle \Fixtures \MyResponseHandler ;
7+ use Pitch \AdrBundle \Fixtures \MyResponsePayload ;
78use Pitch \AdrBundle \PitchAdrBundle ;
89use Pitch \Annotation \PitchAnnotationBundle ;
910use RuntimeException ;
@@ -141,5 +142,9 @@ public function testResponder()
141142 $ event = $ this ->dispatchViewEvent ('foo ' );
142143
143144 $ this ->assertEquals (['value ' => 'foo ' ], $ event ->getControllerResult ());
145+
146+ $ event = $ this ->dispatchViewEvent (new MyResponsePayload ());
147+
148+ $ this ->assertEquals (['value ' => 'foo ' ], $ event ->getControllerResult ());
144149 }
145150}
You can’t perform that action at this time.
0 commit comments