コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
 private function mockGetAlbumInfo($folderNode, $folderPathFromRoot, $features, $answer)
 {
     $this->configService->expects($this->once())->method('getAlbumInfo')->with($folderNode, $folderPathFromRoot, $features)->willReturn($answer);
 }