/** * Mocks PreviewService->getSupportedMediaTypes * * @param $slideshow * @param $nativeSvgSupport * @param $mimeTypes */ private function mockSupportedMediaTypes($slideshow, $nativeSvgSupport, $mimeTypes) { $this->configService->expects($this->any())->method('getSupportedMediaTypes')->with($this->equalTo($slideshow), $this->equalTo($nativeSvgSupport))->willReturn($mimeTypes); }
private function mockGetAlbumInfo($folderNode, $folderPathFromRoot, $features, $answer) { $this->configService->expects($this->once())->method('getAlbumInfo')->with($folderNode, $folderPathFromRoot, $features)->willReturn($answer); }