Skip to content

Commit

Permalink
feat(examples-prepartor): have more a more generic 200 status checking
Browse files Browse the repository at this point in the history
  • Loading branch information
sidux committed Apr 4, 2024
1 parent 3c8dde7 commit 308a9b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Preparator/ExamplesPreparator.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ private function prepareTestCases(Operation $operation): iterable
return $examples
->map(
fn (OperationExample $example) => $this->buildTestCase(
$example->setAutoComplete($this->config->autoComplete)
$example
->setStatusCode($this->config->response->statusCode)

Check failure on line 71 in src/Preparator/ExamplesPreparator.php

View workflow job for this annotation

GitHub Actions / PHPStan

Parameter #1 $statusCode of method APITester\Definition\Example\OperationExample::setStatusCode() expects string, string|null given.
->setAutoComplete($this->config->autoComplete)
)
)
;
Expand Down

0 comments on commit 308a9b4

Please sign in to comment.