mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 09:18:24 +00:00 
			
		
		
		
	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.
This commit is contained in:
		| @@ -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(), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user