From d3230bc3ddca4c5e6fc066bcae35be9c960586fa Mon Sep 17 00:00:00 2001 From: Mateusz Westwalewicz Date: Thu, 18 May 2023 12:25:47 +0200 Subject: [PATCH 1/2] Update dependencies --- composer.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/composer.json b/composer.json index b387382..9b910d9 100644 --- a/composer.json +++ b/composer.json @@ -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", @@ -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." }, From 35c18becac3af9d4c8488b1efe218a9ef76a3a61 Mon Sep 17 00:00:00 2001 From: Evan Garrett Date: Fri, 30 Jun 2023 15:40:04 +0200 Subject: [PATCH 2/2] Adjust expected validation errors response from 200 to 422. --- src/Test/Controller/EditActionTestCase.php | 2 +- src/Test/Controller/NewActionTestCase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Test/Controller/EditActionTestCase.php b/src/Test/Controller/EditActionTestCase.php index a4908aa..2e0a2cf 100644 --- a/src/Test/Controller/EditActionTestCase.php +++ b/src/Test/Controller/EditActionTestCase.php @@ -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); diff --git a/src/Test/Controller/NewActionTestCase.php b/src/Test/Controller/NewActionTestCase.php index dd46d6b..26e64ae 100644 --- a/src/Test/Controller/NewActionTestCase.php +++ b/src/Test/Controller/NewActionTestCase.php @@ -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);