Exemplo n.º 1
0
 private function mockPreviewValidator($square, $base64Encode, $base64EncodedPreview)
 {
     $this->previewService->expects($this->once())->method('previewValidator')->with($square, $base64Encode)->willReturn($base64EncodedPreview);
 }
Exemplo n.º 2
0
 /**
  * Mocks PreviewService->getSupportedMediaTypes
  *
  * @param $slideshow
  * @param $nativeSvgSupport
  * @param $mimeTypes
  */
 private function mockSupportedMediaTypes($slideshow, $nativeSvgSupport, $mimeTypes)
 {
     $this->previewService->expects($this->any())->method('getSupportedMediaTypes')->with($this->equalTo($slideshow), $this->equalTo($nativeSvgSupport))->willReturn($mimeTypes);
 }