File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
tests/Unit/Exception/EventSubscriber Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 16
16
use Symfony \Component \HttpKernel \KernelInterface ;
17
17
use Symfony \Component \Validator \ConstraintViolationList ;
18
18
use Undabot \JsonApi \Definition \Encoding \DocumentToPhpArrayEncoderInterface ;
19
+ use Undabot \JsonApi \Definition \Exception \Request \ClientGeneratedIdIsNotAllowedException ;
19
20
use Undabot \JsonApi \Definition \Exception \Request \RequestException ;
20
21
use Undabot \JsonApi \Implementation \Model \Resource \Resource ;
21
22
use Undabot \SymfonyJsonApi \Exception \EventSubscriber \ExceptionListener ;
@@ -80,6 +81,10 @@ public function exceptionProvider(): \Generator
80
81
yield 'Exception is Exception instance ' => [
81
82
new \Exception (),
82
83
];
84
+
85
+ yield 'Exception is ClientGeneratedIdIsNotAllowedException instance ' => [
86
+ new ClientGeneratedIdIsNotAllowedException (),
87
+ ];
83
88
}
84
89
85
90
public function testOnKernelExceptionWillSetCorrectEventResponseGivenGivenExceptionIsSupportedAndEventHaveThrowableMethod (): void
You can’t perform that action at this time.
0 commit comments