@@ 221-227 (lines=7) @@ | ||
218 | self::assertCount($expectedCount, $response->getDomainEvents()); |
|
219 | } |
|
220 | ||
221 | protected function thenFirstErrorHasMessage(BasicMutationResponse $response, $message): void |
|
222 | { |
|
223 | $error = $response->getErrors()->getAll()[0]; |
|
224 | ||
225 | self::assertInstanceOf(ShowableMutationError::class, $error); |
|
226 | self::assertEquals($message, $error->getErrorMessage()); |
|
227 | } |
|
228 | ||
229 | private function thenFirstErrorHasMessageParams(BasicMutationResponse $response, $params) |
|
230 | { |
|
@@ 229-235 (lines=7) @@ | ||
226 | self::assertEquals($message, $error->getErrorMessage()); |
|
227 | } |
|
228 | ||
229 | private function thenFirstErrorHasMessageParams(BasicMutationResponse $response, $params) |
|
230 | { |
|
231 | $error = $response->getErrors()->getAll()[0]; |
|
232 | ||
233 | self::assertInstanceOf(ShowableMutationError::class, $error); |
|
234 | self::assertEquals($params, $error->getErrorMessageParams()); |
|
235 | } |
|
236 | ||
237 | protected function thenEventIsTestDomainEventWithPayoad(BasicMutationResponse $response, $testPayload): void |
|
238 | { |