From fde74b190dc2ef34cb26a0e87f667719a36d609a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 21 Oct 2024 17:45:12 +0200 Subject: [PATCH] Add mock for TempUrlGeneratorInterface in StoredObjectTypeTest Updated the StoredObjectNormalizer initialization to include a mock for TempUrlGeneratorInterface. This ensures tests handle all dependencies of StoredObjectNormalizer correctly. --- .../ChillDocStoreBundle/Tests/Form/StoredObjectTypeTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillDocStoreBundle/Tests/Form/StoredObjectTypeTest.php b/src/Bundle/ChillDocStoreBundle/Tests/Form/StoredObjectTypeTest.php index 9bf5ff33b..4e7aa132c 100644 --- a/src/Bundle/ChillDocStoreBundle/Tests/Form/StoredObjectTypeTest.php +++ b/src/Bundle/ChillDocStoreBundle/Tests/Form/StoredObjectTypeTest.php @@ -11,6 +11,7 @@ declare(strict_types=1); namespace Chill\DocStoreBundle\Tests\Form; +use Chill\DocStoreBundle\AsyncUpload\TempUrlGeneratorInterface; use Chill\DocStoreBundle\Entity\StoredObject; use Chill\DocStoreBundle\Form\DataMapper\StoredObjectDataMapper; use Chill\DocStoreBundle\Form\DataTransformer\StoredObjectDataTransformer; @@ -132,7 +133,8 @@ class StoredObjectTypeTest extends TypeTestCase new StoredObjectNormalizer( $jwtTokenProvider->reveal(), $urlGenerator->reveal(), - $security->reveal() + $security->reveal(), + $this->createMock(TempUrlGeneratorInterface::class) ), new StoredObjectDenormalizer($storedObjectRepository->reveal()), new StoredObjectVersionNormalizer(),