Example #1
0
 function it_returns_image_and_gallery(ImageRepository $imageRepository, GalleryRepository $galleryRepository)
 {
     $image = $this->getImage();
     $imageRepository->getByHash(md5('hash'))->willReturn($image);
     $gallery = $this->getGallery($imageRepository->getWrappedObject());
     $galleryRepository->getById('galleryId')->willReturn($gallery);
     $this->execute()->shouldReturn(['image' => $image, 'gallery' => $gallery]);
 }