public function it_succesfully_checks_complete_media(ProductValueInterface $value, ChannelInterface $channel, LocaleInterface $locale, ProductMediaInterface $media) { $value->getMedia()->willReturn(null); $this->isComplete($value, $channel, $locale)->shouldReturn(false); $value->getMedia()->willReturn([]); $this->isComplete($value, $channel, $locale)->shouldReturn(false); $media->__toString()->willReturn(''); $value->getMedia()->willReturn($media); $this->isComplete($value, $channel, $locale)->shouldReturn(false); $media->__toString()->willReturn('other'); $value->getMedia()->willReturn($media); $this->isComplete($value, $channel, $locale)->shouldReturn(true); }