public function setUp() { parent::setUp(); $this->mediaRepository = $this->prophesize(MediaRepositoryInterface::class); $this->collectionRepository = $this->prophesize(CollectionRepositoryInterface::class); $this->userRepository = $this->prophesize(UserRepositoryInterface::class); $this->em = $this->prophesize(EntityManager::class); $this->storage = $this->prophesize(StorageInterface::class); $this->validator = $this->prophesize(FileValidatorInterface::class); $this->formatManager = $this->prophesize(FormatManagerInterface::class); $this->tagManager = $this->prophesize(TagManagerInterface::class); $this->typeManager = $this->prophesize(TypeManagerInterface::class); $this->pathCleaner = $this->prophesize(PathCleanupInterface::class); $this->tokenStorage = $this->prophesize(TokenStorageInterface::class); $this->securityChecker = $this->prophesize(SecurityCheckerInterface::class); $this->ffprobe = $this->prophesize(FFProbe::class); $this->mediaManager = new MediaManager($this->mediaRepository->reveal(), $this->collectionRepository->reveal(), $this->userRepository->reveal(), $this->em->reveal(), $this->storage->reveal(), $this->validator->reveal(), $this->formatManager->reveal(), $this->tagManager->reveal(), $this->typeManager->reveal(), $this->pathCleaner->reveal(), $this->tokenStorage->reveal(), $this->securityChecker->reveal(), $this->ffprobe->reveal(), ['view' => 64], '/', 0); }