public function setUp()
 {
     $this->accessControlManager = $this->prophesize(AccessControlManagerInterface::class);
     $this->securityChecker = $this->prophesize(SecurityCheckerInterface::class);
     $this->roleRepository = $this->prophesize(RoleRepositoryInterface::class);
     $this->viewHandler = $this->prophesize(ViewHandlerInterface::class);
     $this->permissionController = new PermissionController($this->accessControlManager->reveal(), $this->securityChecker->reveal(), $this->roleRepository->reveal(), $this->viewHandler->reveal());
 }
Esempio n. 2
0
 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);
 }