mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 17:28:23 +00:00 
			
		
		
		
	Fix unit test to accomodate changed constructor in StoredObjectNormalizer
This commit is contained in:
		| @@ -23,6 +23,7 @@ use Prophecy\PhpUnit\ProphecyTrait; | ||||
| use Symfony\Component\Form\PreloadedExtension; | ||||
| use Symfony\Component\Form\Test\TypeTestCase; | ||||
| use Symfony\Component\Routing\Generator\UrlGeneratorInterface; | ||||
| use Symfony\Component\Security\Core\Security; | ||||
| use Symfony\Component\Serializer\Encoder\JsonEncoder; | ||||
| use Symfony\Component\Serializer\Serializer; | ||||
|  | ||||
| @@ -80,11 +81,15 @@ class StoredObjectTypeTest extends TypeTestCase | ||||
|         $urlGenerator->generate('chill_docstore_dav_document_get', Argument::type('array'), UrlGeneratorInterface::ABSOLUTE_URL) | ||||
|             ->willReturn('http://url/fake'); | ||||
|  | ||||
|         $security = $this->prophesize(Security::class); | ||||
|         $security->isGranted(Argument::cetera())->willReturn(true); | ||||
|  | ||||
|         $serializer = new Serializer( | ||||
|             [ | ||||
|                 new StoredObjectNormalizer( | ||||
|                     $jwtTokenProvider->reveal(), | ||||
|                     $urlGenerator->reveal(), | ||||
|                     $security->reveal() | ||||
|                 ), | ||||
|             ], | ||||
|             [ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user