Skip to content

Commit

Permalink
Fix validation errors response expectation (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
evang522 authored Sep 26, 2023
1 parent f78e11e commit c2090c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"php": "~8.1.0 || ~8.2.0",
"ext-dom": "*",
"azjezz/psl": "^2.3.1",
"easycorp/easyadmin-bundle": "~4.5.1",
"easycorp/easyadmin-bundle": "~v4.6.5",
"symfony/asset": "^5.4 || ^6.2",
"symfony/cache": "^5.4 || ^6.2",
"symfony/config": "^5.4 || ^6.2",
Expand All @@ -54,9 +54,6 @@
"speicher210/functional-test-bundle": "^2.x-dev",
"vimeo/psalm": "^5.6"
},
"conflict": {
"easycorp/easyadmin-bundle": ">=4.5.2"
},
"suggest": {
"speicher210/functional-test-bundle": "For testing support."
},
Expand Down
2 changes: 1 addition & 1 deletion src/Test/Controller/EditActionTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ protected function assertSubmittingFormAndShowingValidationErrors(
): void {
$crawler = $this->submitFormRequest($data, $files, $queryParameters);

self::assertResponseStatusCode($this->getClient()->getResponse(), Response::HTTP_OK);
self::assertResponseStatusCode($this->getClient()->getResponse(), Response::HTTP_UNPROCESSABLE_ENTITY);

$form = $this->findForm($crawler);

Expand Down
2 changes: 1 addition & 1 deletion src/Test/Controller/NewActionTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected function assertSubmittingFormAndShowingValidationErrors(
): void {
$crawler = $this->submitFormRequest($data, $files, $queryParameters);

self::assertResponseStatusCode($this->getClient()->getResponse(), Response::HTTP_OK);
self::assertResponseStatusCode($this->getClient()->getResponse(), Response::HTTP_UNPROCESSABLE_ENTITY);

$form = $this->findForm($crawler);

Expand Down

0 comments on commit c2090c3

Please sign in to comment.